From e228f04345d6846151cfe0e8fd4c78aa8fb47b37 Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Sat, 3 Jun 2023 12:18:07 -0400 Subject: [PATCH] Remove permissions work --- app/classes/web/panel_handler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index 4297d698..692bcff4 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -576,7 +576,6 @@ class PanelHandler(BaseHandler): "Files": EnumPermissionsServer.FILES, "Config": EnumPermissionsServer.CONFIG, "Players": EnumPermissionsServer.PLAYERS, - "Webhooks": EnumPermissionsServer.WEBHOOKS, } page_data[ "user_permissions" @@ -752,7 +751,7 @@ class PanelHandler(BaseHandler): ) if subpage == "webhooks": if ( - not page_data["permissions"]["Webhooks"] + not page_data["permissions"]["Config"] in page_data["user_permissions"] ): if not superuser: @@ -760,7 +759,6 @@ class PanelHandler(BaseHandler): "/panel/error?error=Unauthorized access to Webhooks Config" ) return - page_data[""] def get_banned_players_html(): banned_players = self.controller.servers.get_banned_players(server_id)