🐛 fix(users.py): fix variable name in if condition to correctly check for password update
This commit is contained in:
parent
f4186840fb
commit
4d0531d0cd
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ def patch_user(
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=403, detail="You don't have the permission to update this user"
|
status_code=403, detail="You don't have the permission to update this user"
|
||||||
)
|
)
|
||||||
if user.password:
|
if user_update.password:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=400, detail="You can't change your password here"
|
status_code=400, detail="You can't change your password here"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue