Skip to content
Snippets Groups Projects
Unverified Commit 9e884567 authored by Morris Jobke's avatar Morris Jobke
Browse files

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


Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
parent f3768e2a
No related branches found
No related tags found
No related merge requests found
...@@ -1006,10 +1006,10 @@ class OC_Util { ...@@ -1006,10 +1006,10 @@ class OC_Util {
$perms = substr(decoct(@fileperms($dataDirectory)), -3); $perms = substr(decoct(@fileperms($dataDirectory)), -3);
if ($perms[2] !== '0') { if ($perms[2] !== '0') {
$l = \OC::$server->getL10N('lib'); $l = \OC::$server->getL10N('lib');
return [ return [[
'error' => $l->t('Your data directory is readable by other users'), '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.'), 'hint' => $l->t('Please change the permissions to 0770 so that the directory cannot be listed by other users.'),
]; ]];
} }
} }
return []; return [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment