diff options
| -rw-r--r-- | Project-Unite/Views/Admin/Roles.cshtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Project-Unite/Views/Admin/Roles.cshtml b/Project-Unite/Views/Admin/Roles.cshtml index 0c490f2..2419eef 100644 --- a/Project-Unite/Views/Admin/Roles.cshtml +++ b/Project-Unite/Views/Admin/Roles.cshtml @@ -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" }) } |
