summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Project-Unite/Views/Moderator/Bans.cshtml11
1 files 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 @@
<td>@Html.UserLink(u.BannedBy)</td>
<td>@u.BannedAt</td>
<td>
- @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" })
}
- }
</td>
</tr>
@@ -61,9 +58,9 @@
<tr>
<td>@u.Address</td>
<td>
- @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" })
}
</td>
</tr>