Fix compilation errors on banlist

This commit is contained in:
Michael 2017-05-22 14:41:41 -04:00
parent 0942196366
commit 28007dc7df

View file

@ -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" })
}
}
</td>
</tr>
@ -61,7 +58,7 @@
<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" })
}