Docs › Releases › 1.12 › Changelog
Recurnix 1.12 changelog
Every change in 1.12, by kind. For what it means and whether to update, read the release notes.
Fixed
- The admin menu offered links the account could not open. Every one of the 59 pages and resources already declared
canAccess(), and the panel enforced it properly — click through and you got a 403. The menu simply never asked. Measured with an account holdingview.ticketsand nothing else: the menu offered 57 links, 15 of which worked. The other 42 were locked doors. - Two menu entries had a hand-written permission check — Staff and Roles each carried
->visible(fn () => auth()->user()?->can('view.users')), which duplicated a string that already lived in the resource's owncanAccess()and was free to drift from it. Somebody had spotted the problem and fixed the two most sensitive items; the job was never finished. Both now go through the same path as everything else. - The Shortcuts sidebar was ungated too, and it links to create screens — a different permission verb from the menu's
view.*. An account that could not create an invoice was still offered "New Invoice". - Recurnix shipped Laravel's stock error pages. A white screen reading "404 | Not Found" in small grey text, with no branding, no dark mode and no way back. That was the product's face on 403 (a permission gap), 404, 419 (a session that timed out while somebody filled in a long form), 429 (the rate limits this product ships switched on), 500 and 503.
Added
App\Filament\Navigation\AdminNavigation— resolves a navigation entry to the class that guards it, straight from the panel's own registry, and asks that classcanAccess(). One rule, asked from both sides. A resource added tomorrow is gated correctly without anyone remembering to do it.- Branded error pages for 401, 403, 404, 419, 429, 500 and 503, sharing one layout, in light and dark, with wording written for the person actually reading it: what happened, whether it was their fault, and what to do next. Each carries a short reference line so a support ticket can be traced to a log entry.
App\Support\ErrorPage— the wording as a pure static, so it is unit-testable and so a page can be rendered when very little else is working.- 25 more committed tests (78 total, 245 assertions).
Changed
- A navigation entry whose destination cannot be resolved is now hidden rather than shown. A link to a page the panel does not serve is a dead end.
AdminNavigation::allows()fails closed ifcanAccess()throws. Navigation is rebuilt on every request, including requests served during an install before the permission tables exist; it must never be the reason the panel dies.- The error stylesheet is a static file at
public/css/error.css, versioned against the release. Two reasons, both deliberate: an error page must not depend on the asset pipeline it may be reporting the failure of, and a self-hosted product gets deployed behind other people's Content Security Policies, where an inline<style>block is silently stripped.
Notes
- Filament already hides a navigation group whose items are all invisible — measured, not assumed: Billing, Services and Catalog disappear on their own for a support-only account. A
groupSurvives()helper was written for this, found to have no caller, and removed. Shipping code nothing runs is worse than shipping nothing. - This could not be verified by signing in as a test staff account, because that means typing a password. It was verified programmatically instead: a scratch narrow-permission user, logged in in code, then the panel's own navigation enumerated against what
canAccess()allows. - The permission model itself was not changed. The 15 links that survive for a ticket agent — tickets, departments, help topics, statuses, priorities, SLA plans, schedules, canned replies, filters, teams, the knowledge base, contact messages, the dashboard and their own sessions — are what the resources already permitted. The menu now tells the truth about them.