Commit 62063ba7 authored by Michel Pelletier's avatar Michel Pelletier

fixed manage_getPermissionMapping to handle default roles.

parent 29f462f0
......@@ -290,9 +290,9 @@ class PermissionMapperManager(Acquisition.Implicit):
r=[]
a=r.append
for name, who_cares in method.ac_inherited_permissions(1):
p=perms.get(getPermissionMapping(name, wrapper), '')
a({'permission_name': name, 'class_permission': p})
for ac_perms in method.ac_inherited_permissions(1):
p=perms.get(getPermissionMapping(ac_perms[0], wrapper), '')
a({'permission_name': ac_perms[0], 'class_permission': p})
return r
def manage_setPermissionMapping(trueself, self,
......
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