app/views/decidim/debates/debates/index.html.erb in decidim-debates-0.14.4 vs app/views/decidim/debates/debates/index.html.erb in decidim-debates-0.15.0

- old
+ new

@@ -3,10 +3,10 @@ <div class="row columns"> <div class="title-action"> <h2 id="debates-count" class="title-action__title section-heading"> <%= render partial: "count" %> </h2> - <% if current_settings.creation_enabled? %> + <% if current_settings.creation_enabled? && current_component.participatory_space.can_participate?(current_user) %> <%= action_authorized_link_to :create, new_debate_path, class: "title-action__action button small hollow", data: { "redirect_url" => new_debate_path } do %> <%= t(".new_debate") %> <%= icon "plus" %> <% end %> <% end %>