From 4ec5541b5133e6061985544a84fc7689b072d3b4 Mon Sep 17 00:00:00 2001 From: Madiwka3 Date: Mon, 27 Nov 2023 20:55:26 +0600 Subject: [PATCH] passsword mod2 --- app/apis/v1/route_user.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/apis/v1/route_user.py b/app/apis/v1/route_user.py index 0505b56..fa70f91 100644 --- a/app/apis/v1/route_user.py +++ b/app/apis/v1/route_user.py @@ -92,6 +92,7 @@ def update_user( current_user: User = Depends(get_current_user), ): if current_user.Role != "Admin" or current_user.id != user_id: + print(current_user.Role, current_user.id, user_id) raise HTTPException( status_code=403, detail="You are not authorized to perform this action" )