From d6229e6438b71a60fa72a893ef874b8df44d7e12 Mon Sep 17 00:00:00 2001 From: stefanogoldoni Date: Thu, 29 Apr 2021 00:33:40 +0200 Subject: [PATCH] eliminate print di controllo --- code/backend/nest_backend/routes/users/user_create.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/code/backend/nest_backend/routes/users/user_create.py b/code/backend/nest_backend/routes/users/user_create.py index 799583b..c93531c 100644 --- a/code/backend/nest_backend/routes/users/user_create.py +++ b/code/backend/nest_backend/routes/users/user_create.py @@ -17,8 +17,6 @@ def page_user_create(): {'result':'failure', 'content':'something blew up'}, else it returns {'result':'success', 'content':newUser.to_json(). """ user = find_user(get_jwt_identity()) - print(user) - print(user.isAdmin) if not user.isAdmin: return json_error("User is not admin. Thou are not authorized."), 403 new_user = User(email=request.json.get("email"), password=gen_password(request.json.get("password")),