summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-22 21:03:00 -0400
committerMichael <[email protected]>2017-05-22 21:03:00 -0400
commitd76f06578c9b0c15bea0d7d5b2250d00ad74b7b9 (patch)
tree330d2a77ae9e150ce047feeee263d3bbccc3b012
parent3c95bab2d55ec785f1cd50d7cff6967d97a08811 (diff)
downloadproject-unite-d76f06578c9b0c15bea0d7d5b2250d00ad74b7b9.tar.gz
project-unite-d76f06578c9b0c15bea0d7d5b2250d00ad74b7b9.tar.bz2
project-unite-d76f06578c9b0c15bea0d7d5b2250d00ad74b7b9.zip
fix old acl in roles list
-rw-r--r--Project-Unite/Views/Admin/Roles.cshtml2
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" })
}