From e5030a44d8d27010b828cb3dcf3901086ddad140 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Mon, 24 Jun 2024 15:48:47 +0200 Subject: [PATCH] Fix two checks for ADMIN role that should've been PII instead. Fixes #71 --- SS14.Admin/Pages/Bans/Hits.cshtml | 2 +- SS14.Admin/Pages/Tables/RoleBansTable.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SS14.Admin/Pages/Bans/Hits.cshtml b/SS14.Admin/Pages/Bans/Hits.cshtml index 05be267..87ef844 100644 --- a/SS14.Admin/Pages/Bans/Hits.cshtml +++ b/SS14.Admin/Pages/Bans/Hits.cshtml @@ -15,7 +15,7 @@
@Model.Ban.Player?.LastSeenUserName
User ID:
@Model.Ban.Ban.PlayerUserId
- @if (User.IsInRole("ADMIN")) + @if (User.IsInRole(Constants.PIIRole)) {
IP:
@Model.Ban.Ban.Address?.FormatCidr()
diff --git a/SS14.Admin/Pages/Tables/RoleBansTable.cshtml b/SS14.Admin/Pages/Tables/RoleBansTable.cshtml index 332ecfe..3c56397 100644 --- a/SS14.Admin/Pages/Tables/RoleBansTable.cshtml +++ b/SS14.Admin/Pages/Tables/RoleBansTable.cshtml @@ -53,7 +53,7 @@
} - @if (User.IsInRole("ADMIN")) + @if (User.IsInRole(Constants.PIIRole)) { if (ban.Address != null) {