fix old acl in roles list

This commit is contained in:
Michael 2017-05-22 21:03:00 -04:00
parent 3c95bab2d5
commit d76f06578c

View file

@ -41,7 +41,7 @@
<td>
@Html.ActionLink("Edit", "EditRole", new { id = item.Id }, new { @class = "btn btn-default" })
@Html.ActionLink("Details", "RoleDetails", new { id = item.Id }, new { @class = "btn btn-default" })
@if (ACL.Granted(User.Identity.Name, "CanDeleteRoles"))
@if (User.Identity.IsAdmin())
{
@Html.ActionLink("Delete", "DeleteRole", new { id = item.Id }, new { @class = "btn btn-danger" })
}