Revision a2c1e8db
Added by Shlomi Zadok over 7 years ago
app/views/roles/index.html.erb | ||
---|---|---|
display_link_if_authorized(_('Add filter'), hash_for_new_filter_path(:role_id => role)),
|
||
display_link_if_authorized(_('Clone'), hash_for_clone_role_path(:id => role))] %>
|
||
|
||
<% links.push(display_delete_if_authorized(hash_for_role_path(:id => role), :data => { :confirm => (_("Delete %s?") % role.name) } )) unless role.builtin? %>
|
||
<% links.push(display_delete_if_authorized(hash_for_role_path(:id => role),
|
||
:data => { :confirm => (delete_role_confirmation(role)) } )) unless role.builtin? %>
|
||
<%= action_buttons(*links) %>
|
||
</td>
|
||
</tr>
|
Also available in: Unified diff
Fixes #5673 - Allow deletion of role with users