Javi Martín
096f546c24
Make sure users only vote once in the same poll
...
When skipping verification, we cannot apply the validation rule saying
the document number and document type must be unique, because they'll be
`nil` in many cases. So we were skipping the rule, but that makes it
possible for the same user to vote several times (for instance, once in
a booth and once via web).
So we're changing the scope of the uniqueness rule: instead of being
unique per document number, voters are unique per user. The reason we
made them unique per document number was that back in commit 900563e3
(when we added the rule), we hadn't added the relation between users and
poll voters yet.
2020-08-07 13:40:25 +02:00
..
2020-03-26 15:07:55 +01:00
2019-10-24 18:11:58 +02:00
2019-04-17 17:40:56 +02:00
2020-08-06 12:38:18 +02:00
2019-04-17 17:40:56 +02:00
2020-07-14 13:16:08 +02:00
2019-10-26 13:03:48 +02:00
2019-10-25 19:29:12 +02:00
2020-07-27 14:32:22 +02:00
2019-10-23 14:39:31 +02:00
2019-04-17 17:40:56 +02:00
2019-10-24 17:56:03 +02:00
2020-08-07 13:40:25 +02:00
2019-10-26 13:21:36 +02:00
2019-10-24 17:56:03 +02:00
2019-10-26 13:21:36 +02:00
2019-11-01 20:08:46 +01:00
2019-04-17 17:40:56 +02:00
2019-10-26 13:21:36 +02:00
2019-10-24 17:56:03 +02:00
2019-06-05 16:18:12 +02:00
2020-07-14 12:32:14 +02:00
2019-11-05 13:03:45 +01:00
2019-10-24 17:11:47 +02:00
2019-10-26 13:03:48 +02:00
2019-06-12 18:03:53 +02:00
2020-08-06 12:38:18 +02:00
2019-04-17 17:40:56 +02:00
2019-10-24 17:56:03 +02:00
2019-11-06 00:04:02 +01:00
2020-07-08 18:34:58 +02:00
2019-03-27 15:22:14 +01:00
2019-11-06 00:04:02 +01:00
2020-04-27 19:26:37 +02:00
2019-10-24 17:11:47 +02:00
2019-10-24 17:11:47 +02:00
2019-10-24 17:11:47 +02:00
2019-04-17 17:40:56 +02:00
2019-10-24 17:56:03 +02:00
2019-04-17 17:40:56 +02:00
2019-10-24 17:11:47 +02:00
2019-10-25 19:29:12 +02:00
2019-04-17 17:40:56 +02:00
2019-10-26 13:26:35 +02:00
2019-10-23 14:39:31 +02:00
2019-10-24 17:56:03 +02:00
2019-03-14 17:25:43 +01:00
2019-04-29 13:08:43 -05:00
2019-11-07 16:26:19 +01:00
2019-10-24 17:56:03 +02:00
2019-04-17 17:40:56 +02:00
2019-10-24 17:11:47 +02:00
2019-10-24 17:11:47 +02:00
2019-04-17 17:40:56 +02:00
2019-11-13 01:50:08 +01:00
2019-10-24 17:11:47 +02:00
2019-10-26 13:03:49 +02:00
2020-04-27 19:26:37 +02:00
2019-10-26 13:21:36 +02:00
2019-10-25 19:03:10 +02:00
2020-04-06 15:26:47 +02:00
2019-04-17 17:40:56 +02:00
2019-10-25 19:03:14 +02:00
2020-04-28 15:45:32 +02:00
2019-10-26 13:21:36 +02:00
2020-07-08 12:39:25 +02:00
2020-04-09 07:11:53 +10:00
2019-10-26 13:03:49 +02:00
2019-03-14 17:25:43 +01:00
2019-05-21 13:50:19 +02:00
2020-07-08 18:34:58 +02:00
2019-02-05 17:41:00 +01:00
2019-11-01 17:12:31 +01:00
2019-10-25 19:29:12 +02:00
2020-07-08 18:34:58 +02:00
2019-04-17 17:40:56 +02:00
2019-10-24 17:11:47 +02:00
2019-04-17 17:40:56 +02:00
2019-04-17 17:40:56 +02:00
2017-12-15 19:21:02 +01:00
2019-04-17 17:40:56 +02:00