mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 12:46:39 +00:00
fix: rename user_type
This commit is contained in:
parent
9429cbb3a6
commit
b8351d7151
|
@ -37,7 +37,7 @@ def get_users(
|
|||
users.append(
|
||||
UserDataUser(
|
||||
username="root",
|
||||
origin=UserDataUserOrigin.ROOT,
|
||||
user_type=UserDataUserOrigin.ROOT,
|
||||
ssh_keys=get_ssh_keys(username=user.username),
|
||||
)
|
||||
)
|
||||
|
@ -111,7 +111,7 @@ def get_user_by_username(username: str) -> Optional[UserDataUser]:
|
|||
if username == "root":
|
||||
return UserDataUser(
|
||||
username="root",
|
||||
origin=UserDataUserOrigin.ROOT,
|
||||
user_type=UserDataUserOrigin.ROOT,
|
||||
ssh_keys=get_ssh_keys(username="root"),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue