Skip to content

Implement FilamentUser on the User model#390

Merged
jbrooksuk merged 1 commit into
mainfrom
claude/filament-user-panel-access
Jul 14, 2026
Merged

Implement FilamentUser on the User model#390
jbrooksuk merged 1 commit into
mainfrom
claude/filament-user-panel-access

Conversation

@jbrooksuk

@jbrooksuk jbrooksuk commented Jul 14, 2026

Copy link
Copy Markdown
Member

Summary

Filament 5.6 denies panel access with a 403 outside the local environment when the authenticated user model does not implement the FilamentUser contract (Filament\Http\Middleware\Authenticate). Cachet\Models\User doesn't implement it, so any production install that updates to Filament ≥ 5.6 loses access to the dashboard entirely.

The test suite doesn't catch this because Testbench's workbench skeleton runs with APP_ENV=local, where Filament skips the check.

What changed

  • Cachet\Models\User now implements Filament\Models\Contracts\FilamentUser, with canAccessPanel() returning true — preserving the existing semantics where any authenticated user may access the dashboard.

Split out of #389 (the MCP server PR), where it originally landed; it's independent of MCP and worth releasing on its own.

🤖 Generated with Claude Code

https://claude.ai/code/session_0157S7dDNDwYuqWsqeg1DB94

Filament 5.6 now denies panel access with a 403 outside the local
environment when the authenticated user model does not implement the
FilamentUser contract. Implement it with the existing semantics: any
authenticated user may access the dashboard.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0157S7dDNDwYuqWsqeg1DB94
@jbrooksuk
jbrooksuk merged commit 17e2b80 into main Jul 14, 2026
28 checks passed
@jbrooksuk
jbrooksuk deleted the claude/filament-user-panel-access branch July 14, 2026 08:52
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