Adds UI to enrole members

This commit is contained in:
Paul Schneider 2015-11-04 16:20:21 +01:00
commit 0b8b717f3e
12 changed files with 58 additions and 11 deletions

View file

@ -4,7 +4,7 @@ Roles:
<ul>
<%foreach (string rolename in (string[]) Model){ %>
<li><%=rolename%> <% if (Roles.IsUserInRole("Admin")) { %>
<li><%=Html.ActionLink(rolename,"UsersInRole", new { rolename = rolename }, new { @class="actionlink" } )%> <% if (Roles.IsUserInRole("Admin")) { %>
<%= Html.ActionLink("Supprimer","RemoveRole", new { rolename = rolename }, new { @class="actionlink" } ) %>
<% } %></li>
<% } %>