diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/util.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php index 3ce11746672..2fc6ba52d4e 100644 --- a/lib/private/legacy/util.php +++ b/lib/private/legacy/util.php @@ -979,8 +979,11 @@ class OC_Util { * @return array arrays with error messages and hints */ public static function checkDataDirectoryPermissions($dataDirectory) { + if(\OC::$server->getConfig()->getSystemValue('check_data_directory_permissions', true) === false) { + return []; + } $l = \OC::$server->getL10N('lib'); - $errors = array(); + $errors = []; $permissionsModHint = $l->t('Please change the permissions to 0770 so that the directory' . ' cannot be listed by other users.'); $perms = substr(decoct(@fileperms($dataDirectory)), -3); |