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" })
}
|