1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 12:12:43 +01:00
phorge-phorge/src/applications/slowvote/controller
epriestley 26081594e2 Fix two very, very minor correctness issues in Slowvote
Summary:
See <https://hackerone.com/reports/492525> and <https://hackerone.com/reports/489531>. I previously awarded a bounty for <https://hackerone.com/reports/434116> so Slowvote is getting "researched" a lot.

  - Prevent users from undoing their vote by submitting the form with nothing selected.
  - Prevent users from racing between the `delete()` and `save()` to vote for multiple options in a plurality poll.

Test Plan:
  - Clicked the vote button with nothing selected in plurality and approval polls, got an error now.
  - Added a `sleep(5)` between `delete()` and `save()`. Submitted different plurality votes in different windows. Before: votes raced, invalid end state. After: votes waited on the lock, arrived in a valid end state.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20125
2019-02-07 12:45:11 -08:00
..
PhabricatorSlowvoteCloseController.php Reimplement Slowvote transactions using modular transactions 2017-05-04 20:20:00 -07:00
PhabricatorSlowvoteCommentController.php Remove "willRenderTimeline()" from ApplicationTransactionInterface 2018-12-20 14:55:07 -08:00
PhabricatorSlowvoteController.php Modernize Slowvote, fix Badges mobile menu 2015-11-30 12:58:11 -08:00
PhabricatorSlowvoteEditController.php Update slowvote for new edit UI 2017-09-07 12:51:59 -07:00
PhabricatorSlowvoteListController.php Modernize Slowvote, fix Badges mobile menu 2015-11-30 12:58:11 -08:00
PhabricatorSlowvotePollController.php Make a handful of minor Slowvote behaviors more consistent with other applications 2017-05-14 14:01:33 -07:00
PhabricatorSlowvoteVoteController.php Fix two very, very minor correctness issues in Slowvote 2019-02-07 12:45:11 -08:00