mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 20:56:39 +00:00
style: blacked
This commit is contained in:
parent
74c8118f9f
commit
8f6ec45085
|
@ -405,8 +405,12 @@ class KanidmUserRepository(AbstractUserRepository):
|
||||||
if exclude_primary and user_type == UserDataUserOrigin.PRIMARY:
|
if exclude_primary and user_type == UserDataUserOrigin.PRIMARY:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
directmemberof = KanidmUserRepository._remove_default_groups(groups=user_attrs.get("directmemberof", []))
|
directmemberof = KanidmUserRepository._remove_default_groups(
|
||||||
memberof = KanidmUserRepository._remove_default_groups(groups=user_attrs.get("memberof", []))
|
groups=user_attrs.get("directmemberof", [])
|
||||||
|
)
|
||||||
|
memberof = KanidmUserRepository._remove_default_groups(
|
||||||
|
groups=user_attrs.get("memberof", [])
|
||||||
|
)
|
||||||
|
|
||||||
filled_user = UserDataUser(
|
filled_user = UserDataUser(
|
||||||
username=user_attrs["name"][0],
|
username=user_attrs["name"][0],
|
||||||
|
@ -519,8 +523,12 @@ class KanidmUserRepository(AbstractUserRepository):
|
||||||
|
|
||||||
attrs = user_data["attrs"] # type: ignore
|
attrs = user_data["attrs"] # type: ignore
|
||||||
|
|
||||||
directmemberof = KanidmUserRepository._remove_default_groups(groups=attrs.get("directmemberof", []))
|
directmemberof = KanidmUserRepository._remove_default_groups(
|
||||||
memberof = KanidmUserRepository._remove_default_groups(groups=attrs.get("memberof", []))
|
groups=attrs.get("directmemberof", [])
|
||||||
|
)
|
||||||
|
memberof = KanidmUserRepository._remove_default_groups(
|
||||||
|
groups=attrs.get("memberof", [])
|
||||||
|
)
|
||||||
|
|
||||||
return UserDataUser(
|
return UserDataUser(
|
||||||
username=attrs["name"][0],
|
username=attrs["name"][0],
|
||||||
|
|
Loading…
Reference in a new issue