[BUGFIX] Properly check permissions with read only file mounts 94/34694/6
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 27 Nov 2014 22:14:45 +0000 (23:14 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Wed, 3 Dec 2014 00:10:00 +0000 (01:10 +0100)
commit1dea93759da40f11557cd554a40cfde9e76dc6a2
treeb1c51004b9f5f8e9867a4ad190b78bf052f9c682
parent7a2f78a8e7569620467e80743e8e53ea776445a0
[BUGFIX] Properly check permissions with read only file mounts

Previously the permission check returned false if the
file or folder was within a read only file mount, but
also within a writable file mount.

Properly check this now and centralize the check in
isWithinFileMountBoundaries, which now has an additional
argument whether write access to file mounts should be checked or not.

Resolves: #63364
Related: #49391
Releases: master, 6.2
Change-Id: If90958b7d6e4d5aad1fbd172af06462ca2b9764f
Reviewed-on: http://review.typo3.org/34694
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Resource/ResourceStorage.php
typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php