Logo Search packages:      
Sourcecode: zope-cmfforum version File versions  Download package

ForumPermissions.py

from Products.CMFCore import CMFCorePermissions
from Products.CMFCore.CMFCorePermissions import setDefaultRoles

# Gathering Event Related Permissions into one place
ViewForum = 'View Forum'
AddForumPosting = 'Add Forum posting'
AddForum = 'Add Forum'

# Set up default roles for permissions
setDefaultRoles(AddForumPosting,
                ('Manager', 'Member', 'Anonymous'))

setDefaultRoles(ViewForum,
                ('Manager', 'Member', 'Anonymous'))

setDefaultRoles(AddForum,
                ('Manager', 'Member'))

Generated by  Doxygen 1.6.0   Back to index