Fix missing condition in index auth
This commit is contained in:
parent
f60c190a11
commit
0be8a74fa8
|
@ -5,7 +5,7 @@
|
|||
<ul class="nav nav-pills nav-stacked">
|
||||
<% @module_apps.each do |module_app| %>
|
||||
<li class="<%= @module_app == module_app ? 'active' : '' %>">
|
||||
<%= link_to content_tag(:i, nil, class: (module_app.get_registration.get_icon_class rescue nil)) + ' ' + module_app.title, admin_authorizations_path(module_app.key, (@type if module_app.authorizable_models.include?(@type.camelize))) %>
|
||||
<%= link_to content_tag(:i, nil, class: (module_app.get_registration.get_icon_class rescue nil)) + ' ' + module_app.title, admin_authorizations_path(module_app.key, (@type if (@type && module_app.authorizable_models.include?(@type.camelize)))) %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
|
Reference in New Issue