Commit 4dbe00e5 authored by Jérome Perrin's avatar Jérome Perrin

ERP5TypeTestCase user must have *all* roles, because it will own all executable

objects in the ZODB, and it's required for proxy roles to work that the owner
have the role.
http://www.zope.org/Members/jim/ZopeSecurity/ServerSideTrojan



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13357 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c3bed357
......@@ -258,7 +258,8 @@ class ERP5TypeTestCase(PortalTestCase):
Most of the time, we need to login before doing anything
"""
uf = self.getPortal().acl_users
uf._doAddUser('ERP5TypeTestCase', '', ['Manager', 'Member'], [])
uf._doAddUser('ERP5TypeTestCase', '', ['Manager', 'Member', 'Assignee',
'Assignor', 'Author', 'Auditor', 'Associate'], [])
user = uf.getUserById('ERP5TypeTestCase').__of__(uf)
newSecurityManager(None, user)
......
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