Fix regression in return value of OC_Util::checkDataDirectoryPermissions due to #21761

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-07-09 09:29:44 +02:00
parent f3768e2a2a
commit 9e88456768
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 2 additions and 2 deletions

View File

@ -1006,10 +1006,10 @@ class OC_Util {
$perms = substr(decoct(@fileperms($dataDirectory)), -3);
if ($perms[2] !== '0') {
$l = \OC::$server->getL10N('lib');
return [
return [[
'error' => $l->t('Your data directory is readable by other users'),
'hint' => $l->t('Please change the permissions to 0770 so that the directory cannot be listed by other users.'),
];
]];
}
}
return [];