Issue Task Under Review

#111498Delegate backend user permission checks to security voters

Benni Mack 11/18/26, 20:27 updated 11/18/26, 20:29

Description

BackendUserAuthentication::check(), checkAuthMode() and checkLanguageAccess() should ask the security voters (see #111237) for every permission a voter decides on: tables_select, tables_modify, non_exclude_fields, explicit_allowdeny, allowed_languages, pagetypes_select, modules, available_widgets, mfa_providers and custom_options.

The legacy checks and isGranted() then always give the same answer, and voters of extensions restrict both. Other permissions such as webmounts and all checks in the install tool keep their current behavior.

For users who are no administrators, a few answers change: tables marked adminOnly are denied even if granted, fields that are no exclude fields are granted by non_exclude_fields, allowed_languages follows checkLanguageAccess(), and empty values or values listing several items never match a grant.

Reviews 1

History 01