decidim-vocdoni / decidim-module-vocdoni

(WIP) A module for Decidim that brings an elections component based on the Vocdoni SDK and API
GNU Affero General Public License v3.0
8 stars 0 forks source link

Vote overwrite configuration #65

Closed andreslucena closed 1 year ago

andreslucena commented 1 year ago

Ref: VOC-SEC-04

As the Vocdoni API enforces us to configure a number of votes overwrites, and this value has an implication in the cost of the election (as it needs more resources), an Implementer, needs to be able to change this value.

The Implementer i the sysadmin that installs and manages the Decidim installation, and as it's a detail very technical, we'll configure this through a config_accessor (Decidim::Vocdoni.votes_overwrite_max) and environment variable (DECIDIM_VOCDONI_VOTES_OVERWRITE_MAX). The default value will be 10.

To try to mitigate the risk of coercion, to participants we'll show the same message that we have now (You have already voted on this election. You can vote again.) and a notice with another color when they have only one last vote (You have already voted on this election. You can vote again only one last time.).

This issue is related to https://github.com/decidim-vocdoni/decidim-module-vocdoni/issues/34

Acceptance criteria