From 28007dc7df6686d56bd8fbc7809dcd313370b08b Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 22 May 2017 14:41:41 -0400 Subject: [PATCH] Fix compilation errors on banlist --- Project-Unite/Views/Moderator/Bans.cshtml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Project-Unite/Views/Moderator/Bans.cshtml b/Project-Unite/Views/Moderator/Bans.cshtml index 90e20fc..64a1855 100644 --- a/Project-Unite/Views/Moderator/Bans.cshtml +++ b/Project-Unite/Views/Moderator/Bans.cshtml @@ -30,13 +30,10 @@ @Html.UserLink(u.BannedBy) @u.BannedAt - @if(ACL.Granted(User.Identity.Name, "CanIssueBan")) - { - if(ACL.CanManageRole(User.Identity.Name, u.HighestRole.Id)) + @if (ACL.CanManageRole(User.Identity.Name, u.HighestRole.Id)) { - @Html.ActionLink("Unban", "Unban", "Moderator", new { id=u.Id}, new { @class="btn btn-default"}) + @Html.ActionLink("Unban", "Unban", "Moderator", new { id = u.Id }, new { @class = "btn btn-default" }) } - } @@ -61,9 +58,9 @@ @u.Address - @if (ACL.Granted(User.Identity.Name, "CanIssueIPBan")) + @if (User.Identity.IsAdmin()) { - @Html.ActionLink("Unban", "UnbanIP", "Moderator", new { id = u.Id }, new { @class = "btn btn-danger" }) + @Html.ActionLink("Unban", "UnbanIP", "Moderator", new { id = u.Id }, new { @class = "btn btn-danger" }) }