Commit 03ad3b1a authored by Jérome Perrin's avatar Jérome Perrin

Initialise right permissions


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3909 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8f7d727b
......@@ -59,7 +59,15 @@ class PreferenceTool(BaseTool):
manage_options = ( BaseTool.manage_options +
( { 'label' : 'User Groups Preferences'
, 'action' : 'manage_group_preferences'},))
__ac_permissions__ = ((Permissions.AddPortalContent, [], ['Member']),)
security.declarePrivate('manage_afterAdd')
def manage_afterAdd(self, item, container) :
""" init the permissions right after creation """
item.manage_permission(Permissions.AddPortalContent,
['Member', 'Author', 'Manager'])
item.manage_permission(Permissions.View,
['Member', 'Auditor', 'Manager'])
BaseTool.inheritedAttribute('manage_afterAdd')(self, item, container)
def _aq_dynamic(self, name):
""" if the name is a valid preference, then start a lookup on
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment