diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-06-12 16:18:38 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-14 10:14:08 +0200 |
commit | 3f2cb39aba90e05b7b897c1b3e018b6b33a76d21 (patch) | |
tree | 47a496a1e754aea5e7b10d1f97f8d051b2f7642b /apps/files_external/lib/webdav.php | |
parent | c8c81061684ccf671b22e48906a0abd04c6898cc (diff) | |
download | nextcloud-server-3f2cb39aba90e05b7b897c1b3e018b6b33a76d21.tar.gz nextcloud-server-3f2cb39aba90e05b7b897c1b3e018b6b33a76d21.zip |
Properly set read permissions for webdav storages
Diffstat (limited to 'apps/files_external/lib/webdav.php')
-rw-r--r-- | apps/files_external/lib/webdav.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php index 948a462074a..6c268ea00be 100644 --- a/apps/files_external/lib/webdav.php +++ b/apps/files_external/lib/webdav.php @@ -404,7 +404,7 @@ class DAV extends \OC\Files\Storage\Common { $this->init(); $response = $this->client->propfind($this->encodePath($path), array('{http://owncloud.org/ns}permissions')); if (isset($response['{http://owncloud.org/ns}permissions'])) { - $permissions = 0; + $permissions = \OCP\PERMISSION_READ; $permissionsString = $response['{http://owncloud.org/ns}permissions']; if (strpos($permissionsString, 'R') !== false) { $permissions |= \OCP\PERMISSION_SHARE; |