🐛 fix(users.py): fix variable name in if condition to correctly check for password update

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-08 18:41:44 -03:00
commit 4d0531d0cd

View file

@ -98,7 +98,7 @@ def patch_user(
raise HTTPException(
status_code=403, detail="You don't have the permission to update this user"
)
if user.password:
if user_update.password:
raise HTTPException(
status_code=400, detail="You can't change your password here"
)