From 1476d85569fb63882bc87a16b7cdc948ec8fcf12 Mon Sep 17 00:00:00 2001 From: hobs Date: Tue, 3 Dec 2024 09:05:10 +0000 Subject: [PATCH] fix perms --- app/Http/Controllers/BansController.php | 2 +- app/Http/Controllers/MutesController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/BansController.php b/app/Http/Controllers/BansController.php index 4e60f7d..649ff72 100755 --- a/app/Http/Controllers/BansController.php +++ b/app/Http/Controllers/BansController.php @@ -60,7 +60,7 @@ public function getBansList(Request $request) $editAction = ''; $unbanAction = ''; if(!empty($ban->server)) { - if (PermissionsHelper::hasBanPermission($ban->server_id) || PermissionsHelper::hasWebBanEditPermissions($ban->server_id)) { + if (PermissionsHelper::hasUnBanPermission($ban->server_id) || PermissionsHelper::hasWebBanEditPermissions($ban->server_id)) { $editAction = ""; } if (empty($ban->player_steamid)) diff --git a/app/Http/Controllers/MutesController.php b/app/Http/Controllers/MutesController.php index 0d36a85..326dabd 100755 --- a/app/Http/Controllers/MutesController.php +++ b/app/Http/Controllers/MutesController.php @@ -58,7 +58,7 @@ public function getMutesList(Request $request) $editAction = ''; $unmuteAction = ''; if(!empty($mute->server)) { - if (PermissionsHelper::hasMutePermission($mute->server_id) || PermissionsHelper::hasWebMuteEditPermissions($mute->server_id)) { + if (PermissionsHelper::hasUnMutePermission($mute->server_id) || PermissionsHelper::hasWebMuteEditPermissions($mute->server_id)) { $editAction = ""; } if (empty($mute->player_steamid))