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" }) }