Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Ready for review

97804[TASK] Delegate backend user permission checks to security voters

Benni Mack CR 0 V 0 Hard +241 −12 updated 11/18/26, 20:41

Commit message

BackendUserAuthentication::check(), checkAuthMode() and
checkLanguageAccess() now ask the security voters 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() thus give the same answer, and voters of extensions
restrict both.

The principal is built from the user object by the
LegacyUserPrincipalFactory, which is public for this, so changes of
the group data at runtime are taken into account. Other permissions,
such as webmounts, keep their checks, as do all checks without the
voters, such as in the install tool.

For users who are no administrators, adminOnly tables are denied even
if granted, fields that are no exclude fields are granted, a language
is granted as checkLanguageAccess() does, and empty or malformed values
and values listing several items never match a grant.

The functional test comparing the policy decision point with the
legacy checks now compares it with the former checks.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/04/97804/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/04/97804/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Relation chain 2

  1. 97804 [TASK] Delegate backend user permission checks to security voters This change

  2. main 95784[FEATURE] Decide table, field and language access with voters This change is based on it Thomas Maroschik CR +1 V +1 unified-identity-security-kernel Expert +1215 −11

Issues 2

Files 6

Review log 12

  1. Benni Mack uploaded patch set 1 11/18/26, 20:28

  2. core-ci voted on patch set 1 V +1 11/18/26, 20:41 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114920