mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-28 21:05:17 +02:00
k
This commit is contained in:
@@ -252,6 +252,7 @@ class UserManager(UUIDIDMixin, BaseUserManager[User, uuid.UUID]):
|
|||||||
if not user.role.is_web_login() and user_create.role.is_web_login():
|
if not user.role.is_web_login() and user_create.role.is_web_login():
|
||||||
user_update = UserUpdateWithRoleForManager(
|
user_update = UserUpdateWithRoleForManager(
|
||||||
password=user_create.password,
|
password=user_create.password,
|
||||||
|
role=user_create.role,
|
||||||
is_verified=user_create.is_verified,
|
is_verified=user_create.is_verified,
|
||||||
)
|
)
|
||||||
user = await self.update(user_update, user)
|
user = await self.update(user_update, user)
|
||||||
|
Reference in New Issue
Block a user