mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 12:46:39 +00:00
fix: add UserType(user.user_type.value)
This commit is contained in:
parent
b8351d7151
commit
2a0ce65421
|
@ -49,7 +49,7 @@ def get_user_by_username(username: str) -> Optional[User]:
|
|||
return User(
|
||||
username=user.username,
|
||||
ssh_keys=user.ssh_keys or [],
|
||||
user_type=user.user_type or None,
|
||||
user_type=UserType(user.user_type.value) or None,
|
||||
displayname=user.displayname or None,
|
||||
email=user.email or None,
|
||||
directmemberof=user.directmemberof or None,
|
||||
|
@ -64,7 +64,7 @@ def get_users() -> list[User]:
|
|||
User(
|
||||
username=user.username,
|
||||
ssh_keys=user.ssh_keys or [],
|
||||
user_type=user.user_type or None,
|
||||
user_type=UserType(user.user_type.value) or None,
|
||||
displayname=user.displayname or None,
|
||||
email=user.email or None,
|
||||
directmemberof=user.directmemberof or None,
|
||||
|
|
Loading…
Reference in a new issue