Commit c83131bd authored by Alexandre Boeglin's avatar Alexandre Boeglin

When using PluggableAuthService, add CMF Portal roles Member and Reviewer to

  the ZODB Role Manager plugin.
Maybe it will no longer be required once PAS is the standard.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4558 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 02666384
...@@ -882,6 +882,10 @@ class ERP5Generator(PortalGenerator): ...@@ -882,6 +882,10 @@ class ERP5Generator(PortalGenerator):
p.acl_users.manage_addProduct['PluggableAuthService'].addZODBUserManager('zodb_users') p.acl_users.manage_addProduct['PluggableAuthService'].addZODBUserManager('zodb_users')
p.acl_users.manage_addProduct['PluggableAuthService'].addZODBGroupManager('zodb_groups') p.acl_users.manage_addProduct['PluggableAuthService'].addZODBGroupManager('zodb_groups')
p.acl_users.manage_addProduct['PluggableAuthService'].addZODBRoleManager('zodb_roles') p.acl_users.manage_addProduct['PluggableAuthService'].addZODBRoleManager('zodb_roles')
# Add CMF Portal Roles
#XXX Maybe it will no longer be required once PAS is the standard
p.acl_users.zodb_roles.addRole('Member')
p.acl_users.zodb_roles.addRole('Reviewer')
# Register ZODB Interface # Register ZODB Interface
p.acl_users.zodb_users.manage_activateInterfaces(('IAuthenticationPlugin', p.acl_users.zodb_users.manage_activateInterfaces(('IAuthenticationPlugin',
'IUserEnumerationPlugin','IUserAdderPlugin')) 'IUserEnumerationPlugin','IUserAdderPlugin'))
......
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