diff options
| author | Michael <[email protected]> | 2017-05-22 21:03:00 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-22 21:03:00 -0400 |
| commit | d76f06578c9b0c15bea0d7d5b2250d00ad74b7b9 (patch) | |
| tree | 330d2a77ae9e150ce047feeee263d3bbccc3b012 | |
| parent | 3c95bab2d55ec785f1cd50d7cff6967d97a08811 (diff) | |
| download | project-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.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" }) } |
