Back to index

plone3  3.1.7
permissions.py
Go to the documentation of this file.
00001 from Products.CMFCore.permissions import setDefaultRoles
00002 from AccessControl import ModuleSecurityInfo
00003 
00004 security = ModuleSecurityInfo("plone.app.workflow.permissions")
00005 
00006 # Controls access to the "sharing" page
00007 security.declarePublic("DelegateRoles")
00008 DelegateRoles = "Sharing page: Delegate roles"
00009 setDefaultRoles(DelegateRoles, ('Manager', 'Owner', 'Editor', 'Reviewer', ))
00010 
00011 # Control the individual roles
00012 security.declarePublic("DelegateReaderRole")
00013 DelegateReaderRole = "Sharing page: Delegate Reader role"
00014 setDefaultRoles(DelegateReaderRole, ('Manager', 'Owner', 'Editor', 'Reviewer'))
00015 
00016 security.declarePublic("DelegateEditorRole")
00017 DelegateEditorRole = "Sharing page: Delegate Editor role"
00018 setDefaultRoles(DelegateEditorRole, ('Manager', 'Owner', 'Editor'))
00019 
00020 security.declarePublic("DelegateContributorRole")
00021 DelegateContributorRole = "Sharing page: Delegate Contributor role"
00022 setDefaultRoles(DelegateContributorRole, ('Manager', 'Owner',))
00023 
00024 security.declarePublic("DelegateReviewerRole")
00025 DelegateReviewerRole = "Sharing page: Delegate Reviewer role"
00026 setDefaultRoles(DelegateReviewerRole, ('Manager', 'Reviewer',))
00027 
00028