Browse Source

Merge branch 'master' of bitbucket.org:kukrilabs/python-keycloak

* 'master' of bitbucket.org:kukrilabs/python-keycloak:
  Fix tab
  Fix a bug in the subgroup searching
hotfix/merge
Ewan Jones 6 years ago
parent
commit
c63ad36150
No known key found for this signature in database GPG Key ID: E34E7F21D7272734
  1. 9
      keycloak/keycloak_admin.py

9
keycloak/keycloak_admin.py

@ -426,9 +426,12 @@ class KeycloakAdmin:
if group['path'] == path:
return group
elif search_in_subgroups and group["subGroups"]:
res = self.get_subgroups(group, path)
if res != None:
return res
for group in group["subGroups"]:
if group['path'] == path:
return group
res = self.get_subgroups(group, path)
if res != None:
return res
return None
def create_group(self, payload, parent=None, skip_exists=False):

Loading…
Cancel
Save