Skip to content

Authorize private note creation - #374

Merged
Cannonb4ll merged 3 commits into
ploi:mainfrom
bjarn:codex/authorize-private-notes
Oct 5, 2026
Merged

Cannonb4ll merged 3 commits into
ploi:mainfrom
bjarn:codex/authorize-private-notes

Conversation

@bjarn

@bjarn bjarn commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Require staff access before the comment component creates a private note.
  • Keep normal public comment behavior unchanged.
  • Add tests for forged component state and valid administrator and employee use.

Security impact

A normal authenticated user could forge Livewire state and create a staff-only private note.

Tests

  • php artisan test --compact tests/Feature/Livewire/Item/CommentsTest.php

@Cannonb4ll
Cannonb4ll merged commit 31b82c0 into ploi:main Oct 5, 2026
3 checks passed
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.

2 participants