lib/generators/freeberry/base/templates/views/manage/posts/index.html.erb in freeberry-0.2.7 vs lib/generators/freeberry/base/templates/views/manage/posts/index.html.erb in freeberry-0.2.9
- old
+ new
@@ -5,10 +5,10 @@
<div class="white-row">
<div class="r-corn">
<%= link_to @structure.title, manage_structure_posts_path(@structure.id), :class=>"dark-text" %>
<div class="act-bl">
- <% permitted_to? :create, :manage_posts do %>
+ <% if can? :create, Post, :context => :manage %>
<%= link_to t('manage.add'), new_manage_structure_post_path(@structure.id), :class=>"create" %>
<% end %>
</div>
</div>
</div>