[CMF-checkins] CVS: CMF/CMFCore/tests/base - security.py:1.5
Yvo Schubbe
schubbe at web.de
Mon Oct 20 05:40:01 EDT 2003
Update of /cvs-repository/CMF/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv19564/CMFCore/tests/base
Modified Files:
security.py
Log Message:
only Managers should be able to assign the Local Role 'Manager'
=== CMF/CMFCore/tests/base/security.py 1.4 => 1.5 ===
--- CMF/CMFCore/tests/base/security.py:1.4 Mon Jun 2 12:18:47 2003
+++ CMF/CMFCore/tests/base/security.py Mon Oct 20 05:40:00 2003
@@ -35,6 +35,10 @@
def allowed( self, object, object_roles=None ):
return 1
+ def getRolesInContext(self, object):
+ return ('Manager',)
+
+
class UserWithRoles( Implicit ):
"""
User with roles specified in constructor
More information about the CMF-checkins
mailing list