diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index a59ca8d7..96053378 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -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." )