Skip to content

Commit

Permalink
Fix two checks for ADMIN role that should've been PII instead.
Browse files Browse the repository at this point in the history
Fixes #71
  • Loading branch information
PJB3005 committed Jun 24, 2024
1 parent a9d619e commit e5030a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SS14.Admin/Pages/Bans/Hits.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<dd class="col-sm-10">@Model.Ban.Player?.LastSeenUserName</dd>
<dt class="col-sm-2">User ID:</dt>
<dd class="col-sm-10 font-monospace">@Model.Ban.Ban.PlayerUserId</dd>
@if (User.IsInRole("ADMIN"))
@if (User.IsInRole(Constants.PIIRole))
{
<dt class="col-sm-2">IP:</dt>
<dd class="col-sm-10 font-monospace">@Model.Ban.Ban.Address?.FormatCidr()</dd>
Expand Down
2 changes: 1 addition & 1 deletion SS14.Admin/Pages/Tables/RoleBansTable.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
</a>
<br/>
}
@if (User.IsInRole("ADMIN"))
@if (User.IsInRole(Constants.PIIRole))
{
if (ban.Address != null)
{
Expand Down

0 comments on commit e5030a4

Please sign in to comment.