Recurnix docs

Docs › Releases › 1.14 › Release notes

Recurnix 1.14 release notes

Released 2026-07-31. Recurnix 2.11 is newer.

You remove a colleague from the account. They still have the tab open.

Recurnix lets an account holder invite colleagues and give each of them a slice of the account — billing, services, domains, tickets. When somebody leaves, you open Users and press Remove.

That worked, for the next time they tried to sign in. It did nothing at all about the session they were already in.

GET /portal from a revoked sub-user's live session

HTTP status              200
still signed in          YES
session marker left      6

Why it survived

A portal login is always the client on the client guard. When the login came from a sub-user, their id is held in the session and that is the whole of it — the guard has never heard of the colleague. revoke() soft-deletes their row, and the session it does not touch carries on being a perfectly valid, signed-in session for the account.

The method even said so, in a comment: "soft delete — login is blocked immediately." True of the next login. Not of the one in front of them.

What was already right

Two things, and we are going to be specific about them rather than let a security note imply more than it found.

The areas they were given close the instant the row goes. ClientUser::find() skips trashed rows, so their permission list comes back empty and every area gate fails closed — nine areas down to zero, measured. And the routes reserved for the account owner were never reachable by a sub-user in the first place, so this was not a way to take an account over. We went looking for that and did not find it.

What survived was the session, and the two pages still served because of it: the dashboard, and the button that stops an impersonation.

Why it is fixed at the door

Two routes. A patch on two routes would have been three lines and would have looked like enough.

It is the same mistake v1.13 spent a release removing. A list of the places somebody thought of cannot cover a route added next year behind nothing but auth:client — that route would be handed to revoked users the moment it shipped, with nobody deciding anything.

So the session is checked on every request, and it does not matter where the request was going. If the sub-user id in the session points at a row that has been revoked — or at no row at all — the client guard is logged out, the marker is forgotten, the session is invalidated, the CSRF token is rotated, and the person lands back on the sign-in page with an explanation.

The wording is worth a line of its own. Being removed from an account is ordinary: somebody changes jobs, a project finishes. So it does not accuse them of anything, and it tells them who can undo it:

Your access to this account has been removed, so we have signed you out. If you think that was a mistake, ask the account owner to invite you again.

And the confirmation the account holder sees now says what actually happens — that the person will be signed out straight away, including anywhere they are already signed in.

How this was checked

One request, one session, one middleware. The same GET /portal, run with and without the new guard, and nothing else different:

                        without      with guard
account owner           200 / in     200 / in
active sub-user         200 / in     200 / in
REVOKED sub-user        200 / in     302 -> sign-in, signed out

The owner and the active colleague are deliberately first in that table. A guard that can sign the account holder out of their own account would be worse than the hole it closes.

113 committed tests, 407 assertions. The rule itself takes ids and booleans — no models, no session, no database — so it is tested on its own and cannot quietly come to depend on the state it is meant to police.


Last modified: 16 November 2026 · This page documents Recurnix, self-hosted billing and automation. Ask a question.