Skip to content

Commit

Permalink
Fix regression in return value of OC_Util::checkDataDirectoryPermissi…
Browse files Browse the repository at this point in the history
…ons due to #21761

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
  • Loading branch information
MorrisJobke committed Jul 9, 2020
1 parent f3768e2 commit 9e88456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/legacy/OC_Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -1006,10 +1006,10 @@ public static function checkDataDirectoryPermissions($dataDirectory) {
$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 [];
Expand Down

0 comments on commit 9e88456

Please sign in to comment.