summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Moderator/Bans.cshtml
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-22 14:41:41 -0400
committerMichael <[email protected]>2017-05-22 14:41:41 -0400
commit28007dc7df6686d56bd8fbc7809dcd313370b08b (patch)
treee1b415acd84f949ee87c9d6363fe5fdab9fb9609 /Project-Unite/Views/Moderator/Bans.cshtml
parent0942196366bcee73a9e6f8df693db536cd949633 (diff)
downloadproject-unite-28007dc7df6686d56bd8fbc7809dcd313370b08b.tar.gz
project-unite-28007dc7df6686d56bd8fbc7809dcd313370b08b.tar.bz2
project-unite-28007dc7df6686d56bd8fbc7809dcd313370b08b.zip
Fix compilation errors on banlist
Diffstat (limited to 'Project-Unite/Views/Moderator/Bans.cshtml')
-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>