app/views/georgia/header/_media.html.erb in georgia-0.7.8 vs app/views/georgia/header/_media.html.erb in georgia-0.8.0

- old
+ new

@@ -1,3 +1,3 @@ -<% if can? :index, Ckeditor::Asset %> - <%= sidebar_navigation_link 'Media', georgia.media_index_url, controller: 'media', icon: 'picture-o' %> +<% if Georgia::MediaPolicy.new(current_user, Ckeditor::Asset).search? %> + <%= sidebar_navigation_link 'Media', georgia.media_index_path, controller: 'media', icon: 'picture-o' %> <% end -%> \ No newline at end of file