mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 12:46:39 +00:00
fix: Group name list return
This commit is contained in:
parent
e90855975e
commit
d1590e283b
|
@ -504,7 +504,7 @@ class KanidmUserRepository(AbstractUserRepository):
|
||||||
for group_data in groups_list_data:
|
for group_data in groups_list_data:
|
||||||
attrs = group_data.get("attrs", {})
|
attrs = group_data.get("attrs", {})
|
||||||
group = Group(
|
group = Group(
|
||||||
name=attrs["name"],
|
name=attrs["name"][0],
|
||||||
group_class=attrs.get("class", []),
|
group_class=attrs.get("class", []),
|
||||||
member=attrs.get("member", []),
|
member=attrs.get("member", []),
|
||||||
memberof=attrs.get("memberof", []),
|
memberof=attrs.get("memberof", []),
|
||||||
|
|
Loading…
Reference in a new issue