Bugfixe : lors du démarrage du thread, il existe toujours au moins 1 photo à traiter...
[Portfolio.git] / permissions.py
1 # -*- coding: utf-8 -*-
2 ############################################################
3 # Copyright © 2005-2008 Benoît PIN <benoit.pin@ensmp.fr> #
4 # Plinn - http://plinn.org #
5 # #
6 # This program is free software; you can redistribute it #
7 # and/or modify it under the terms of the Creative Commons #
8 # "Attribution-Noncommercial 2.0 Generic" #
9 # http://creativecommons.org/licenses/by-nc/2.0/ #
10 ############################################################
11
12 from AccessControl import Permissions
13 from AccessControl import ModuleSecurityInfo
14
15 from Products.CMFCore.permissions import setDefaultRoles
16
17 security = ModuleSecurityInfo('Products.Portfolio.permissions')
18
19 ViewRawImage = 'View raw image'
20 security.declarePublic('ViewRawImage')
21 setDefaultRoles( ViewRawImage, ( 'Manager', 'Owner' ) )
22
23 AddLightbox = 'Add Lightbox'
24 security.declarePublic('AddLightbox')
25 setDefaultRoles(AddLightbox, ('Manager',))