[BUGFIX] Check access to folder in FileListController 08/39108/9
authorNicole Cordes <typo3@cordes.co>
Thu, 30 Apr 2015 16:12:27 +0000 (18:12 +0200)
committerNicole Cordes <typo3@cordes.co>
Thu, 18 Jun 2015 08:18:42 +0000 (10:18 +0200)
commitcffc7e65c6b252cf7f36330ab96859beb0a24531
treec87e5cec194bdfcf1e0b826f36e6d090293266a0
parent868860d488cf1a8ee953aaed4d04ced15fc11769
[BUGFIX] Check access to folder in FileListController

Currently if a folder isn't accessible for the user, the root folder
is taken as fallback solution. But this folder might be inaccessible as
well. This patch adds an access check for the returned folder and
turns thrown errors into flash messages.

Releases: master, 6.2
Resolves: #66693
Resolves: #56641
Change-Id: I310df8061edc790dde1034a27136365b4253ac7f
Reviewed-on: http://review.typo3.org/39108
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/core/Classes/Resource/Folder.php
typo3/sysext/core/Classes/Resource/ResourceStorage.php
typo3/sysext/filelist/Classes/Controller/FileListController.php
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/lang/locallang_mod_file_list.xlf