Your picks and private groups are better protected
Security
Why it matters: Only you can change your team, and only members can see a private group.
- Only the owner of a team can change or delete it, and only before the tournament starts. New teams can’t be entered once it has started.
- A private group’s page and chat are visible only to its members.
- Only a group’s admins can edit or delete it.
- Only site staff can email all golfers in an event.
Commits (6)
-
9717f2aOnly owners can change or delete a team, and only before the tournament starts -
44ba15cClose new entries once the tournament starts (diff audit 1) -
69636edLock down group edit/delete; close audit-2 gaps -
af800d5Private groups' pages and chat are for members (audit 2) -
72faff3Only site staff can send event emails to all golfers -
319ec5bChat: no cross-group replies, a working rate limit, threads that render
Files Changed (20)
app/controllers/admin/event_emails_controller.rb | 15 +++ app/controllers/entrant_groups_controller.rb | 76 ++++++++++++---- app/controllers/group_admin_controller.rb | 4 +- app/controllers/groups_controller.rb | 50 ++++++++-- app/controllers/message_reactions_controller.rb | 1 + app/controllers/messages_controller.rb | 49 +++++----- app/javascript/controllers/turnstile_controller.js | 49 ++++++++++- app/models/group.rb | 16 +++- app/models/invitation_addresses.rb | 15 +++- app/models/message.rb | 10 ++ app/services/turnstile_verifier.rb | 12 +++- app/views/messages/_message.html.erb | 8 +- app/views/registrations/new.html.erb | 3 +- config/initializers/rack_attack.rb | 14 ++- .../admin/event_emails_controller_test.rb | 40 ++++++++ test/controllers/anti_bot_gate_test.rb | 9 ++ test/controllers/entrant_groups_controller_test.rb | 154 ++++++++++++++++++++++++++++++ test/controllers/groups_controller_test.rb | 158 +++++++++++++++++++++++++++++++ test/controllers/registration_bot_checks_test.rb | 27 +++++- test/jobs/purge_stale_unverified_users_job_test.rb | 13 +++- 20 files changed, 650 insertions(+), 73 deletions(-)