Skip to content

Commit

Permalink
fix perms
Browse files Browse the repository at this point in the history
  • Loading branch information
hobsRKM committed Dec 3, 2024
1 parent 31fff77 commit 1476d85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/BansController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<a href='$siteDir/ban/edit/{$ban->id}' class='btn btn-info btn-sm'><i class='fa fa-edit'></i></a>";
}
if (empty($ban->player_steamid))
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/MutesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<a href='$siteDir/mute/edit/{$mute->id}' class='btn btn-info btn-sm'><i class='fa fa-edit'></i></a>";
}
if (empty($mute->player_steamid))
Expand Down

0 comments on commit 1476d85

Please sign in to comment.