Bug #98440
closedFilemounts from groups are not considered
100%
Description
- Backend User (non-admin)
- User has custom DB Mounts (or only group mounts that do not point to the root page)
- The setting "Mount from groups"->"File Mounts" is activated
- The User has no custom file mounts
- The "root" filemount is attached to one of the groups, the user is a member of.
When logging in, this user should be able to use the File List module.
Instead an error is shown and the File List remains empty
Missing folder permissions. You have no access to the folder "1:/user_upload/".
The problem is that the BackendUserAuthentication never checks the filemounts.
core/Classes/Authentication/BackendUserAuthentication.php (lines 1164 to 1171)
// Mount group database-mounts
if ($mountOptions->shouldUserIncludePageMountsFromAssociatedGroups()) {
$this->groupData['webmounts'] .= ',' . $groupInfo['db_mountpoints'];
}
// Mount group file-mounts
if ($mountOptions->shouldUserIncludePageMountsFromAssociatedGroups()) {
$this->groupData['filemounts'] .= ',' . $groupInfo['file_mountpoints'];
}
The second if again calls $mountOptions->shouldUserIncludePageMountsFromAssociatedGroups() instead of $mountOptions->shouldUserIncludeFileMountsFromAssociatedGroups() which already exists in the BackendGroupMountOption Class. Changing shouldUserIncludePageMountsFromAssociatedGroups to shouldUserIncludeFileMountsFromAssociatedGroups solves the problem.
Updated by Gerrit Code Review about 2 years 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/+/75873
Updated by Gerrit Code Review about 2 years 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/+/75873
Updated by Gerrit Code Review about 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75892
Updated by Christopher Schnell about 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8981165b3cd26d2270bdf38b20fd2c01fa51d4aa.