97322[FEATURE] Decide page permissions with a security voter
Commit message
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 12
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/22/97322/12 && git checkout FETCH_HEAD - Cherry-pick onto main
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/22/97322/12 && 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 5
- main 96852[TASK] Add check whether a user may read a field
- main 96580[TASK] Add check whether a user may read a record
- main 97323[TASK] Check page access along the cached page ancestry
-
97322 [FEATURE] Decide page permissions with a security voter This change
- main 95784[FEATURE] Decide table, field and language access with voters
Merge conflicts 11
- main 97804[TASK] Delegate backend user permission checks to security voters
- main 95783[TASK] Provide the principal to the authorization checker
- main 97619[BUGFIX] Keep system maintainer role when switching user in dev
- main 97555[TASK] Deprecate online media helpers
- main 93628[WIP][TASK] Make GD the baseline image processor
- main 95105[TASK] Apply PHP code simplifications
- main 96543[WIP][POC][TASK] Write and read records by the same rules and rights
- main 96113[WIP][BUGFIX] Honor record web mount exemptions
- main 94543[!!!][BUGFIX] Pass request through writelog() to log login IP
- main 92177[!!!][FEATURE] Autoconfigure backend FormEngine node types
- main 91178[!!!][FEATURE] Autoconfigure backend login providers
Issues 2
Files 18
- typo3/sysext/backend/Classes/Middleware/BackendUserAuthenticator.php+7 −1
- typo3/sysext/core/Classes/Authentication/Event/ModifyPagePermissionClauseEvent.phpnew+121 −0
- typo3/sysext/core/Classes/Authentication/Event/ModifyPagePermissionsEvent.phpnew+84 −0
- typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php+52 −149
- typo3/sysext/core/Classes/Security/Authorization/Page/PageAccessContext.phpnew+71 −0
- typo3/sysext/core/Classes/Security/Authorization/Page/PagePermissionEvaluator.phpnew+286 −0
- typo3/sysext/core/Classes/Security/Authorization/Policy/Scope.php+5 −0
- typo3/sysext/core/Classes/Security/Authorization/Voter/PageVoter.phpnew+85 −0
- typo3/sysext/core/Classes/Security/Authorization/BackendMountContext.phpnew+93 −0
- typo3/sysext/core/Classes/Security/Authorization/FileMount.phpnew+54 −0
- typo3/sysext/core/Documentation/Changelog/15.0/Deprecation-111328-PagePermissionHooks.rstnew+63 −0
- typo3/sysext/core/Documentation/Changelog/15.0/Feature-111328-PSR14EventsForPagePermissions.rstnew+87 −0
- typo3/sysext/core/Tests/Functional/Security/Authorization/Page/Fixtures/PagePermissionHooks.phpnew+34 −0
- typo3/sysext/core/Tests/Functional/Security/Authorization/Page/Fixtures/PagePermissions.csvnew+31 −0
- typo3/sysext/core/Tests/Functional/Security/Authorization/Page/PagePermissionEvaluatorTest.phpnew+254 −0
- typo3/sysext/core/Tests/Functional/Security/Authorization/Voter/PageVoterTest.phpnew+138 −0
- typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php+12 −1
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ArrayDimensionMatcher.php+12 −0
Review log 1222
-
Benni Mack uploaded patch set 1 11/03/26, 14:43
-
core-ci voted on patch set 1 V +1 11/03/26, 15:15 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113168
-
Benni Mack uploaded patch set 2
V +111/09/26, 10:12 -
core-ci voted on patch set 2 V -1 11/09/26, 10:45 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113644
-
Benni Mack uploaded patch set 3
V -111/10/26, 20:26 -
core-ci voted on patch set 3 V -1 11/10/26, 20:59 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113951
-
Benni Mack rebased onto patch set 4
V -111/13/26, 14:31 -
Benni Mack rebased onto patch set 5 11/13/26, 19:02
-
Benni Mack rebased onto patch set 6 11/13/26, 20:59
-
core-ci voted on patch set 6 V +1 11/13/26, 22:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114401
-
Benni Mack rebased onto patch set 7
V +111/17/26, 15:48 -
core-ci voted on patch set 7 V +1 11/17/26, 16:02 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114759
-
Benni Mack uploaded patch set 8
V +111/17/26, 18:50 -
core-ci voted on patch set 8 V -1 11/17/26, 19:05 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114782
-
Benni Mack uploaded patch set 9
V -111/18/26, 08:04 -
core-ci voted on patch set 9 V +1 11/18/26, 08:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114829
-
Benni Mack rebased onto patch set 10
V +111/18/26, 10:35 -
core-ci voted on patch set 10 V +1 11/18/26, 10:51 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114849
-
Benni Mack rebased onto patch set 11
V +111/18/26, 19:05 -
Benni Mack rebased onto patch set 12 11/18/26, 19:16
-
core-ci voted on patch set 11 V +1 11/18/26, 19:16 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114907
-
core-ci voted on patch set 12 V +1 11/18/26, 19:32 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114915