Fix general user can view any api-key page

This commit is contained in:
Andrew 2022-06-18 17:02:10 -04:00
parent 72f97e4ff0
commit 37765dbebc

View File

@ -1058,6 +1058,9 @@ 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"]:
self.redirect("/panel/error?error=Invalid User ID")
return
template = "panel/panel_edit_user_apikeys.html"