mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Remove erroneous print statements
This commit is contained in:
parent
8b6d70ba9a
commit
464428ea7e
@ -1059,10 +1059,6 @@ class PanelHandler(BaseHandler):
|
||||
self.redirect("/panel/error?error=Invalid User ID")
|
||||
return
|
||||
if int(user_id) != exec_user["user_id"] and not exec_user["superuser"]:
|
||||
print(f"{user_id} {type(user_id)}")
|
||||
print(f"{exec_user['user_id']} {type(exec_user['user_id'])}")
|
||||
print(int(user_id) != exec_user["user_id"])
|
||||
print((int(user_id) != exec_user["user_id"]) or (not exec_user["superuser"]))
|
||||
self.redirect(
|
||||
"/panel/error?error=You are not authorized to view this page."
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user