[BUGFIX] Correctly set user storage permissions
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Authentication / BackendUserAuthentication.php
index e5bb199..70554c9 100644 (file)
@@ -1609,7 +1609,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
                        );
                        if (!$this->isAdmin()) {
                                $this->filePermissions = $this->getTSConfig('permissions.file.default');
-                               if (!is_array($this->filePermissions)) {
+                               if (empty($this->filePermissions)) {
                                        $oldFileOperationPermissions = $this->getFileoperationPermissions();
                                        // Lower permissions if the old file operation permissions are not set
                                        if ($oldFileOperationPermissions ^ 1) {