mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01:00
Fix type issue comparing
This commit is contained in:
parent
a8cd982b96
commit
31097da971
@ -1058,7 +1058,7 @@ class PanelHandler(BaseHandler):
|
||||
if user_id is None:
|
||||
self.redirect("/panel/error?error=Invalid User ID")
|
||||
return
|
||||
if user_id != exec_user["user_id"] or not exec_user["superuser"]:
|
||||
if str(user_id) != str(exec_user["user_id"]) or not exec_user["superuser"]:
|
||||
self.redirect(
|
||||
"/panel/error?error=You are not authorized to view this page."
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user