Commit c3a2e1fb authored by Jeffrey Shell's avatar Jeffrey Shell

Fixed a problem in apply where the __ac_permissions__ structure gets

built and a dictionary was being found where a list was expected (the
dictionary was in the form of {'rolename':1}, used to set the default
roles for a permission.  Changed the line to get the keys of the
dictionary).
parent d9192507
......@@ -242,7 +242,7 @@ class ClassSecurityInfo(SecurityInfo):
for permission_name, names in permissions:
roles = getRoles(permission_name, ())
if len(roles):
entry = (permission_name, tuple(names), tuple(roles))
entry = (permission_name, tuple(names), tuple(roles.keys()))
else:
entry = (permission_name, tuple(names))
__ac_permissions__.append(entry)
......
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