Docs › Releases › 1.14 › Changelog
Recurnix 1.14 changelog
Every change in 1.14, by kind. For what it means and whether to update, read the release notes.
Fixed
- Removing a colleague's access did not sign them out. A portal login is always the client on the
clientguard; when the login came from a sub-user, their id is held in the session and nothing more.revoke()soft-deletes the row, which blocks the next login and leaves the tab already open exactly as it was. Measured against the shipped code:GET /portalfrom a revoked sub-user's live session returned HTTP 200, still signed in, with the session marker intact. revoke()said so in a comment — "soft delete — login is blocked immediately". True of the next login. Not of the session in front of them.- The confirmation dialog did not say what would happen, because until now nothing did.
Added
App\Services\Portal\SubUserSession— the rule, pure and primitive: ids and booleans, no models, no session, no database, so it is unit-testable on its own and cannot come to depend on the state it polices. Three verdicts —ok,revoked,missing— and onlyokcontinues.App\Http\Middleware\EnsureSubUserValid, appended to the web group. On every request carrying a sub-user id it looks the row upwithTrashed(), and if access has gone it logs the client guard out, forgets the marker, invalidates the session, rotates the CSRF token and returns the person to the portal sign-in page with a plain explanation.- 12 more committed tests (113 total, 407 assertions).
Changed
- The revoke confirmation now says the person will be signed out straight away, including anywhere they are already signed in — which is now true.
Notes
- Two things were already correct and were left alone. The areas a sub-user was given close the moment the row goes:
ClientUser::find()skips trashed rows, soPortal::permissions()returns an empty list andPortal::can()fails closed — measured at nine areas down to zero. And the routes reserved for the account owner were never reachable by a sub-user at all, so this was not a way to take an account over. The release notes say so rather than implying otherwise. - The fix is at the door, not on the routes. Only two routes were still being served — the dashboard and the impersonation stop — so a two-route patch would have looked sufficient. It would also have been the same mistake as the v1.13 denylist: a list of the places somebody thought of, unable to cover a route added next year behind nothing but
auth:client. - Verified with one request, one session and one middleware: the same
GET /portalrun with and without the new guard. The account owner and an active sub-user are untouched in both (200, still signed in); the revoked sub-user goes from 200 and still signed in to 302 to the sign-in page, signed out, marker cleared.