Skip to content

Authorize private note creation - #374

Open
bjarn wants to merge 2 commits into
ploi:mainfrom
bjarn:codex/authorize-private-notes
Open

bjarn wants to merge 2 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

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