app/permissions/decidim/proposals/admin/permissions.rb in decidim-proposals-0.26.1 vs app/permissions/decidim/proposals/admin/permissions.rb in decidim-proposals-0.26.2

- old
+ new

@@ -118,10 +118,13 @@ allow! if permission_action.subject == :proposal_note end # Proposals can only be created from the admin when the # corresponding setting is enabled. + # This setting is incompatible with participatory texts. def can_create_proposal_from_admin? + return disallow! if participatory_texts_are_enabled? && permission_action.subject == :proposal + toggle_allow(admin_creation_is_enabled?) if permission_action.subject == :proposal end # Proposals can only be answered from the admin when the # corresponding setting is enabled.