Transform proposals component to allow not signed in users creation of proposals. For this the proposals created anonymously will be linked with a special anonymous users. There is a task to create/update anonymous users in organizations explained in Installation section.
The creation of anonymous proposals can be disabled for each proposals component individually. Once you have installed this module and added an anonymous user, anonymous proposals will be enabled by default on all proposal components.
Add this line to your application's Gemfile:
For Decidim 0.31:
gem "decidim-anonymous_proposals", git: "https://github.com/PopulateTools/decidim-module-anonymous_proposals", branch: "release/0.31-stable"Take into account that, since the Decidim 0.31 release, this module has been refactored to use users instead of user groups. To see more about the user group deprecation, check the Decidim 0.31 release notes.
For Decidim 0.30:
gem "decidim-anonymous_proposals", git: "https://github.com/PopulateTools/decidim-module-anonymous_proposals", branch: "release/0.30-stable"For Decidim 0.29:
gem "decidim-anonymous_proposals", git: "https://github.com/PopulateTools/decidim-module-anonymous_proposals", branch: "release/0.29-stable"For Decidim 0.28:
gem "decidim-anonymous_proposals", git: "https://github.com/PopulateTools/decidim-module-anonymous_proposals", branch: "release/0.28-stable"For Decidim 0.27:
gem "decidim-anonymous_proposals", git: "https://github.com/PopulateTools/decidim-module-anonymous_proposals", branch: "release/0.27-stable"For Decidim 0.26:
gem "decidim-anonymous_proposals", git: "https://github.com/PopulateTools/decidim-module-anonymous_proposals", branch: "release/0.26-stable"For Decidim 0.25:
gem "decidim-anonymous_proposals", git: "https://github.com/PopulateTools/decidim-module-anonymous_proposals", branch: "release/0.25-stable"For Decidim 0.24:
gem "decidim-anonymous_proposals", git: "https://github.com/PopulateTools/decidim-module-anonymous_proposals", branch: "release/0.24-stable"And then execute:
bundleTo have the functionality available there must be at least one anonymous user.
An anonymous user is a user with { anonymous: true } present in the
extended_data attribute. There is a task to create automatically or update the
first anonymous user of organizations (or a specific organization if its id is
provided).
The task accepts the following arguments:
- Name of the user (default: "Anonymous")
- Nickname of the user (default: "anonymous")
- Email of the user (default: "anonymous@example.org")
- organization_id. This argument is optional, if not provided a user is generated with the previous configurations for each organization
Example of use:
rake decidim_anonymous_proposals:generate_anonymous_user["Aportaciones anónimas",anonima,anonymous@example.org]See Decidim.
This engine is distributed under the GNU AFFERO GENERAL PUBLIC LICENSE.