[Pkg-owncloud-commits] [owncloud] 124/223: Properly set read permissions for webdav storages
David Prévot
taffit at moszumanska.debian.org
Sun Jun 22 01:54:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 3f2cb39aba90e05b7b897c1b3e018b6b33a76d21
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu Jun 12 16:18:38 2014 +0200
Properly set read permissions for webdav storages
---
apps/files_external/lib/webdav.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php
index 948a462..6c268ea 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list