CluPilotCloud/app/Http/Middleware
nexxo e8bd8268fd Stop a disabled operator from bypassing the hidden-site gate
PublicSiteGate let anyone through on a bare Auth::guard('operator')->check(),
which stays true for a disabled operator's live session — disabling
someone does not sign them out, so it never stopped this gate from
showing them the real site indefinitely, even though EnsureAdmin
already treats them as inactive. Now requires the same thing EnsureAdmin
does: an active operator holding a console role.

Chosen to merely ignore an invalid operator session here rather than log
it out. This gate only decides what one request sees; logging out would
ripple into whatever else that session is doing (a concurrent console
tab, mid-task), a bigger side effect than a visibility check exists to
have. EnsureAdmin sets the precedent — it also rejects a disabled
operator per request without touching their session.
2026-07-28 14:42:29 +02:00
..
EnsureAdmin.php Move the console's identity out of the customer table 2026-07-28 10:31:43 +02:00
EnsureCustomerActive.php Move the console's identity out of the customer table 2026-07-28 10:31:43 +02:00
PublicSiteGate.php Stop a disabled operator from bypassing the hidden-site gate 2026-07-28 14:42:29 +02:00
RequireOperatorTwoFactor.php Let the owner make two-factor compulsory, without locking themselves out 2026-07-28 12:08:08 +02:00
RestrictAdminHost.php Authorize the console's live feed on the operator guard, not the default 2026-07-28 13:31:50 +02:00
RestrictConsoleNetwork.php Give the three console guards one answer to "is this the console?" 2026-07-27 04:52:21 +02:00