diff --git a/decidim-meetings/app/views/decidim/meetings/meetings/index.html.erb b/decidim-meetings/app/views/decidim/meetings/meetings/index.html.erb index c4db8b10ac06..58b278f48c84 100644 --- a/decidim-meetings/app/views/decidim/meetings/meetings/index.html.erb +++ b/decidim-meetings/app/views/decidim/meetings/meetings/index.html.erb @@ -10,7 +10,7 @@ <%= render partial: "count" %> - <% if allowed_to?(:create, :meeting) %> + <% if try(:component_settings) && component_settings&.creation_enabled_for_participants? && current_component.participatory_space.can_participate?(current_user) %> <%= action_authorized_link_to :create, new_meeting_path, class: "title-action__action button small", data: { "redirect_url" => new_meeting_path } do %> <%= t("new_meeting", scope: "decidim.meetings.meetings.index") %> <%= icon "plus", role: "img", "aria-hidden": true %>