mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
fix old acl in roles list
This commit is contained in:
parent
3c95bab2d5
commit
d76f06578c
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@
|
||||||
<td>
|
<td>
|
||||||
@Html.ActionLink("Edit", "EditRole", new { id = item.Id }, new { @class = "btn btn-default" })
|
@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" })
|
@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" })
|
@Html.ActionLink("Delete", "DeleteRole", new { id = item.Id }, new { @class = "btn btn-danger" })
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue