Commit 0d4ad25d authored by Brian Lloyd's avatar Brian Lloyd

Fix for collector #275

parent e4d40d71
......@@ -66,6 +66,10 @@ def default__class_init__(self):
AccessControl.Permission.registerPermissions(self.__ac_permissions__)
for acp in self.__ac_permissions__:
pname, mnames = acp[:2]
if len(acp) > 2:
roles = acp[2]
pr = PermissionRole(pname, roles)
else:
pr=PermissionRole(pname)
for mname in mnames:
dict[mname+'__roles__']=pr
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