1 # -*- coding: utf-8 -*-
2 ############################################################
3 # Copyright © 2005-2008 Benoît PIN <benoit.pin@ensmp.fr> #
4 # Plinn - http://plinn.org #
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 ############################################################
12 from AccessControl
import Permissions
13 from AccessControl
import ModuleSecurityInfo
15 from Products
.CMFCore
.permissions
import setDefaultRoles
17 security
= ModuleSecurityInfo('Products.Portfolio.permissions')
19 ViewRawImage
= 'View raw image'
20 security
.declarePublic('ViewRawImage')
21 setDefaultRoles( ViewRawImage
, ( 'Manager', 'Owner' ) )
23 AddLightbox
= 'Add Lightbox'
24 security
.declarePublic('AddLightbox')
25 setDefaultRoles(AddLightbox
, ('Manager',))