Fix bug where general user could not create sch

This commit is contained in:
Andrew 2022-04-12 18:49:50 -04:00
parent add784df42
commit bb2c1de418

View File

@ -1475,7 +1475,7 @@ class PanelHandler(BaseHandler):
one_time = False one_time = False
if not superuser and not permissions[ if not superuser and not permissions[
"Backup" "Schedule"
] in self.controller.server_perms.get_user_id_permissions_list( ] in self.controller.server_perms.get_user_id_permissions_list(
exec_user["user_id"], server_id exec_user["user_id"], server_id
): ):
@ -1633,7 +1633,7 @@ class PanelHandler(BaseHandler):
one_time = False one_time = False
if not superuser and not permissions[ if not superuser and not permissions[
"Backup" "Schedule"
] in self.controller.server_perms.get_user_id_permissions_list( ] in self.controller.server_perms.get_user_id_permissions_list(
exec_user["user_id"], server_id exec_user["user_id"], server_id
): ):