mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
fix in get_roles
This commit is contained in:
parent
3889a441a3
commit
ab660ebe96
@ -116,7 +116,7 @@ class Roles:
|
||||
"""dump the nested role hierarchy"""
|
||||
return yaml.dump(self.roles, Dumper=CustomDumper)
|
||||
|
||||
def _check_member(role, groups, notroles, roles, parentroles, usedgroups):
|
||||
def _check_member(self, role, groups, notroles, roles, parentroles, usedgroups):
|
||||
if role in notroles:
|
||||
return False
|
||||
|
||||
@ -156,7 +156,7 @@ class Roles:
|
||||
usedgroups = {}
|
||||
unusedgroups = {}
|
||||
ret = {}
|
||||
for r in self.roles:
|
||||
for role in self.roles:
|
||||
self._check_member(role, groups, notroles, roles, parentroles, usedgroups)
|
||||
for b in groups:
|
||||
for g in groups[b]:
|
||||
|
Loading…
Reference in New Issue
Block a user