diff --git a/src/backend/langflow/api/v1/users.py b/src/backend/langflow/api/v1/users.py index aef639b0a..19aaf81d5 100644 --- a/src/backend/langflow/api/v1/users.py +++ b/src/backend/langflow/api/v1/users.py @@ -99,7 +99,7 @@ def patch_user( raise HTTPException( status_code=403, detail="You don't have the permission to update this user" ) - if user_update.password: + if user_update.password and not user.is_superuser: raise HTTPException( status_code=400, detail="You can't change your password here" )