Skip to content
Snippets Groups Projects
Commit 36f33ef2 authored by Sebastian Hofer's avatar Sebastian Hofer Committed by Tobi Kretschmann
Browse files

[BUGFIX] Fix search in file list mount points

In case of the first mount point of a storage in file list
\TYPO3\CMS\Core\Resource\ResourceStorage::getRootLevelFolder()
returns always the first mount point folder and not the real root
folder. This causes, that the condition is always true in case
of first mount point. If the condition is true, no folder restriction
is added. If no folder restriction is added the search is
done in the whole storage and not only in the selected folder.
With disrespecting the mount points this method always returns
the real root folder and the condition is only true if the selected
folder is the storage root folder. This means a folder restriction
is added in other cases.

Resolves: #88175
Releases: master, 9.5
Change-Id: I2e9d52fac71f7f37784a05656574d0a9267d28f7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62872


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarSascha Rademacher <sascha.rademacher+typo3@gmail.com>
Tested-by: default avatarFelix P. <f.pachowsky@neusta.de>
Tested-by: default avatarSteffen Frese <steffenf14@gmail.com>
Tested-by: default avatarTobi Kretschmann <tobi@tobishome.de>
Reviewed-by: default avatarSascha Rademacher <sascha.rademacher+typo3@gmail.com>
Reviewed-by: default avatarFelix P. <f.pachowsky@neusta.de>
Reviewed-by: default avatarSteffen Frese <steffenf14@gmail.com>
Reviewed-by: default avatarTobi Kretschmann <tobi@tobishome.de>
parent 0311f671
Branches
Tags
No related merge requests found
......@@ -51,7 +51,7 @@ class FolderRestriction extends AbstractRestrictionContainer
$this->add($this->createFolderRestriction());
return;
}
if ($this->folder->getIdentifier() === $storage->getRootLevelFolder()->getIdentifier()) {
if ($this->folder->getIdentifier() === $storage->getRootLevelFolder(false)->getIdentifier()) {
return;
}
if ($storage->hasHierarchicalIdentifiers()) {
......
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