From 5b347a020a990ec5278ecc1f7c1470b4808916ed Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Mon, 6 Jan 2025 23:04:58 +0100 Subject: [PATCH] remove update roles --- app/routers/users.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app/routers/users.py b/app/routers/users.py index 9176454..2aec5d2 100644 --- a/app/routers/users.py +++ b/app/routers/users.py @@ -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"}