Skip to content

Commit

Permalink
Ban by player ip added
Browse files Browse the repository at this point in the history
  • Loading branch information
hobsRKM committed May 10, 2024
1 parent 381e433 commit 110f660
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/BansController.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getBansList(Request $request)
"id" => $ban->id,
"player_steamid" => $ban->player_steamid,
"player_name" => $ban->player_name,
"player_ip" => $ban->player_ip,
"player_ip" => (PermissionsHelper::isSuperAdmin()) ? $ban->player_ip : '*****',
'avatar' => !empty($response['response']['players'][0]['avatar']) ? $response['response']['players'][0]['avatar'] : 'https://mdbootstrap.com/img/Photos/Avatars/img(32).jpg' ,
"admin_steamid" => $ban->admin_steamid,
"admin_name" => $ban->admin_name,
Expand Down
1 change: 1 addition & 0 deletions resources/views/admin/bans/list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<tr>
<th scope="col">ID</th>
<th scope="col">Player</th>
<th scope="col">IP</th>
<th scope="col">Banned By Admin</th>
<th scope="col">Reason</th>
<th scope="col">Duration</th>
Expand Down

0 comments on commit 110f660

Please sign in to comment.