Skip to content

Commit

Permalink
fix(initiatives): participants can view components
Browse files Browse the repository at this point in the history
  • Loading branch information
agustibr committed Jun 22, 2022
1 parent b2c058a commit d02d5d3
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ def authorize_participatory_space
end

def layout
current_participatory_space_manifest.context(current_participatory_space_context).layout
space_manifest = if current_participatory_space_manifest.is_a? Decidim::ResourceManifest
Decidim.participatory_space_manifests.find { |manifest| manifest.model_class_name == current_participatory_space.class.name }
else
current_participatory_space_manifest
end
space_manifest.context(current_participatory_space_context).layout
end

# Method for current user can visit the space (assembly or proces)
Expand Down

0 comments on commit d02d5d3

Please sign in to comment.