25 Feb
2004
25 Feb
'04
9:23 p.m.
robert rottermann wrote at 2004-2-25 08:12 +0100:
... [ s for s in map(lambda x : len(x['selected']) and x['name'], context.rolesOfPermission('Undo changes')) if s]
I do not get the inherited roles but only the ones assigned to the folder I perform the test on. If I do the same for "View" I get also the inherited permissions.
Are you sure? It may look so as you may get a default (see "AccessControl.Permission.Permission.getRoles", last lines).
Should not rolesOfPermission also return the inherited roles ?
I do not think so. -- Dieter