#111685Extensions cannot restrict the backend user in the frontend with a security voter
Description
The frontend accepts the backend user of a request only after it checks [BE][IPmaskList], [BE][lockSSL] and [BE][adminOnly], and whether the user may log in. Since #111236, the core asks security voters for access decisions, and an extension can add its own voter. The frontend check of the backend user does not ask the voters. Thus an extension cannot deny a backend user in the frontend with its own voter.
Proposal: a security voter on Scope::ACCESS decides whether the frontend accepts the backend user. It uses the same rules as BackendAccessCheck (#111587). The core asks the voters of extensions too. A switched session whose original backend user is not active anymore is denied, as the backend already does.
Reviews 1
History 01
-
Gerrit Code Review pushed patch set 1 for main to change 98203 status
NewUnder Review 11/30/26, 11:58