Skip to content
Snippets Groups Projects
Commit 6ce0b49b authored by Christoph Lehmann's avatar Christoph Lehmann Committed by Susanne Moog
Browse files

[FOLLOWUP][BUGFIX] Make category tree filterable for editors

Check if TCEFORM.pages.categories.config.treeConfig.rootUid
itself is in the users category mounts (no need for a pseudo
parent category)

Resolves: #83257
Releases: master,8.7,7.6
Change-Id: I8a60860ee3a22d68964f4e44018f0962f7f0f278
Reviewed-on: https://review.typo3.org/54975


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarMathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: default avatarMathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
parent e207ea61
Branches
Tags
No related merge requests found
......@@ -73,6 +73,9 @@ class CategoryPermissionsAspect
// Check the rootline against categoryMountPoints when tree was filtered
if ($dataProvider->getRootUid() !== null) {
if (in_array($dataProvider->getRootUid(), $categoryMountPoints)) {
return;
}
$uidsInRootline = $this->findUidsInRootline($dataProvider->getRootUid());
if (!empty(array_intersect($categoryMountPoints, $uidsInRootline))) {
// One of the parents was found in categoryMountPoints so all children are secure
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment