Bug #98105
closedDatabaseBrowser does not respect TsConfig option pageTree.altElementBrowserMountPoints anymore
100%
Description
Via TsConfig it's supposed to be possible to set alternate mount points for BE-Users or BE-Groups. See https://docs.typo3.org/m/typo3/reference-tsconfig/main/en-us/UserTsconfig/Options.html#pagetree-altelementbrowsermountpoints
Until Typo3 11.x this also had an effect on the
\TYPO3\CMS\Recordlist\Browser\Databrowser
. On Apr 16th 2021 this functionality has been removed completeley. See https://sourcegraph.com/github.com/TYPO3-CMS/recordlist/-/commit/32258eacb313c403a69bc206b325ef9302d46578
Before the following method call had been fired right at the beginning of
DatabaseBrowser::render()
$this->setTemporaryDbMounts()
Part of that method was the call of
$backendUser->initializeWebmountsForElementBrowser()
Instead the call of
$this->getBackendUser()->initializeWebmountsForElementBrowser()
was added to \TYPO3\CMS\Recordlist\LinkHandler\PageLinkHandler
and \TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler
The impact is that the TsConfig option to set alternate mount points does not apply to group fields anymore. I.e. until Typo3 10 it was possible to give BE-users the rights to select DB records of sys_folders that weren't in their regular mount points.
Possible solution would be to re-add the call of
$this->getBackendUser()->initializeWebmountsForElementBrowser()
at the beginning of DatabaseBrowser::render()
. See attached patch file
Files
Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79722
Updated by Gerrit Code Review about 1 year ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79722
Updated by Gerrit Code Review about 1 year ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81773
Updated by Benni Mack about 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset df951cfe17d623f4313c5144f37009e0677044cb.