Skip to content

Enforce board vote restrictions on the server - #377

Open
bjarn wants to merge 1 commit into
ploi:mainfrom
bjarn:codex/enforce-board-vote-block
Open

bjarn wants to merge 1 commit into
ploi:mainfrom
bjarn:codex/enforce-board-vote-block

Conversation

@bjarn

@bjarn bjarn commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Reject direct controller and Livewire vote actions when the board blocks votes.
  • Add a model-level guard for all item vote call sites.
  • Correct and strengthen the existing blocked-vote regression test.

Security impact

A user could bypass the hidden vote interface and call a server action directly.

Tests

  • php artisan test --compact tests/Feature/Item/VoteOnItemTest.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant