remove update roles #43

Merged
v4l3n71n merged 1 commits from feature/add-condition into master 2025-01-06 22:13:10 +00:00
Showing only changes of commit 5b347a020a - Show all commits

View File

@ -145,7 +145,6 @@ async def update_users_me(current_user: Annotated[users.User, Depends(users_toke
current_user.username = userSingle.username
if len(userSingle.password) > 0:
current_user.password = user_token.get_password_hash(userSingle.password)
current_user.roles = userSingle.roles
current_user.email = userSingle.email
user_repository.save(current_user)
content = {"message": "user is updated"}