mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix warning message
This commit is contained in:
parent
37765dbebc
commit
a8cd982b96
@ -1059,7 +1059,9 @@ class PanelHandler(BaseHandler):
|
|||||||
self.redirect("/panel/error?error=Invalid User ID")
|
self.redirect("/panel/error?error=Invalid User ID")
|
||||||
return
|
return
|
||||||
if user_id != exec_user["user_id"] or not exec_user["superuser"]:
|
if user_id != exec_user["user_id"] or not exec_user["superuser"]:
|
||||||
self.redirect("/panel/error?error=Invalid User ID")
|
self.redirect(
|
||||||
|
"/panel/error?error=You are not authorized to view this page."
|
||||||
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
template = "panel/panel_edit_user_apikeys.html"
|
template = "panel/panel_edit_user_apikeys.html"
|
||||||
|
Loading…
Reference in New Issue
Block a user