app/views/page/_menu.html.erb in enju_leaf-1.1.4 vs app/views/page/_menu.html.erb in enju_leaf-1.2.0.beta.1

- old
+ new

@@ -91,10 +91,10 @@ <li><%= link_to t('page.calendar'), events_path(mode: 'calendar') -%></li> <li><%= link_to t('event.all'), events_path -%></li> <%- @library_group.real_libraries.each do |library| -%> <li><%= link_to library.display_name.localize, events_path(library_id: library.name) -%></li> <%- end -%> - <%- if can? :create, Event -%> + <%- if policy(Event).create? -%> <li><%= link_to t('page.import'), new_event_import_file_path -%></li> <%- end -%> <%- end -%> </ul> </li>