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>@Html.UserLink(u.BannedBy)</td>
<td>@u.BannedAt</td> <td>@u.BannedAt</td>
<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> </td>
</tr> </tr>
@ -61,9 +58,9 @@
<tr> <tr>
<td>@u.Address</td> <td>@u.Address</td>
<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> </td>
</tr> </tr>