Authorization Usage
<%= render 'authorization_rules/show_graph' %>
Filter rules in actions by controller:
<%= navigation %>
<% @auth_usages_by_controller.keys.sort {|c1, c2| c1.name <=> c2.name}.each do |controller| %>
<% default_context = controller.controller_name.to_sym rescue nil %>
<%= h controller.controller_name %> |
<% @auth_usages_by_controller[controller].keys.sort {|c1, c2| c1.to_s <=> c2.to_s}.each do |action| %>
<% auth_info = @auth_usages_by_controller[controller][action] %>
<% first_permission = auth_info[:controller_permissions] && auth_info[:controller_permissions][0] %>
<%= h action %> |
<% if first_permission %>
<%= h auth_info[:privilege] || action %> |
<%= h auth_info[:context] || default_context %> |
<% else %>
| |
<% end %>
<% end %>
<% end %>