[BUGFIX] Correctly set user storage permissions 21/22921/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Wed, 7 Aug 2013 11:00:39 +0000 (13:00 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Wed, 7 Aug 2013 15:03:41 +0000 (17:03 +0200)
commit0feea5b5c9e6537c3989bb8340274211cfca5ecb
tree878a55bc9ec3fafaa2ecd0a449700346f2bfd1c4
parentc997bfc9681bbe454820fc746e3419a543e4ad92
[BUGFIX] Correctly set user storage permissions

With FAL a new way to define file permissions
(for storages) has been introduced. You can set
these in User TsConfig instead of doing it
in the user record.

There is a backwards compatibility layer, which should
set the permissions according to the database entry
in case no permissions have been set in TsConfig.
This however does not work, because of a wrong check
for existence of UserTsConfig properties.

Instead of checking for an array (which is always the case),
we have to check if the array is not empty.

Releases: 6.0, 6.1, 6.2
Resolves: #50872
Change-Id: I0ec30a1ae96c4b6916a3e46c7222f832c44f603e
Reviewed-on: https://review.typo3.org/22921
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Oliver Hader
Reviewed-by: Frans Saris
Tested-by: Frans Saris
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php