mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
Fix compilation errors on banlist
This commit is contained in:
parent
0942196366
commit
28007dc7df
1 changed files with 4 additions and 7 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue