# Add Entry from Products.CMFCore.CMFCorePermissions import * from Products.CMFCore.CMFCorePermissions import \ View, ModifyPortalContent, AccessContentsInformation, AddPortalContent #EDIT_PHASE_CONTENT = 'Prog: Edit Phase' #setDefaultRoles( ModifyPortalContent, ('Authenticated','Teacher','Manager','Owner','Managment',) ) #setDefaultRoles( EDIT_PHASE_CONTENT, ('Authenticated','Teacher','Manager','Owner','Management',) ) VIEW_CONTENTS_PERMISSION = View security.declarePublic('EditPhaseContent') EditPhaseContent = 'Edit phase content' setDefaultRoles(EditPhaseContent, ('Manager',)) security.declarePublic('ViewPhaseContent') EditPhaseContent = 'View phase content' setDefaultRoles(EditPhaseContent, ('Manager','Teacher'))