From d76f06578c9b0c15bea0d7d5b2250d00ad74b7b9 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 22 May 2017 21:03:00 -0400 Subject: [PATCH] fix old acl in roles list --- Project-Unite/Views/Admin/Roles.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ @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" }) }