Browse Source

Merged in add-authflow-actions-subgroups-fix (pull request #21)

Fix a bug in the subgroup searching

Approved-by: Marcos Pereira <marcospereira.mpj@gmail.com>
pull/12/head
Martin Devlin 6 years ago
committed by Marcos Pereira
parent
commit
4bb3f8ddd0
  1. 9
      keycloak/keycloak_admin.py

9
keycloak/keycloak_admin.py

@ -413,9 +413,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