Docs › Releases › 1.22 › Release notes
Recurnix 1.22 release notes
Released 2026-07-31. Recurnix 2.11 is newer.
Two things a staff member might do to a customer record:
- correct a typo in the company name
- become that customer, in their own client area, and look at everything
Until this release both needed the same permission: update.clients. One permission, two jobs, wildly different consequence. An operator who wanted a billing clerk to fix addresses had no way to withhold the second thing, because there was only one thing to grant.
What was measured first
role permissions could impersonate
owner 80 yes
admin 72 yes
billing 12 yes
support 2 no
readonly 20 no
Three of five roles. And billing is the interesting one: the seeder grants that role every permission whose name ends in .clients. update.clients ends in .clients. A billing clerk could sign in as any customer in the system because of the shape of a string, not because anyone decided it.
The change
ImpersonationService::PERMISSION now reads impersonate.clients. That is one line. The release is the other part.
⚠ The part that would have broken every install
Change that constant on its own and impersonation stops working everywhere, for everyone, the moment it deploys — nobody holds a permission that did not exist yesterday. Worse, nothing would say so. The button simply stops being drawn.
So the migration backfills: every role and every user that already holds update.clients is given impersonate.clients. The user half matters. Spatie lets a permission be attached straight to a staff account with no role involved, and skipping model_has_permissions would have quietly removed the capability from exactly the people an operator had singled out by hand.
Measured on the live install after migrating:
role permissions change
owner 81 +1
admin 73 +1
billing 13 +1
support 2 -
readonly 20 -
Exactly the three that could impersonate before, and only them.
Asked directly
the permission the service gates on impersonate.clients
existing operator can still impersonate YES
editor-only: can edit clients yes
editor-only: can impersonate no <- the split is real
after granting the new permission yes
Where the logic lives, and why
App\Support\ImpersonationPermission holds the name, the name of the permission it supersedes, and the backfill itself. The migration calls it; so do the tests. A migration whose logic runs exactly once, in production, unobserved, is not tested code — and this one has to be right the first time, on somebody else's install, with no one watching.
Data only, no DDL, so it runs on MySQL, MariaDB, PostgreSQL and SQLite alike — the rule adopted in v1.15 after raw MySQL ALTER made the suite unbuildable. down() removes the permission and every grant of it; the old permission is never touched, so a rollback puts impersonation back where it was.
What this release does not decide
Whether billing should be able to impersonate. It could yesterday and it can today; the difference is that now it is written out by name instead of falling out of a suffix match, and it can be revoked without taking client editing away too. That is a decision for an operator to make, on purpose, which is the whole point of splitting the permission in the first place.
214 committed tests, 669 assertions.