Properly set read permissions for webdav storages

remotes/origin/ldap_group_count
Robin Appelman 11 years ago committed by Bjoern Schiessle
parent c8c8106168
commit 3f2cb39aba
  1. 2
      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;

Loading…
Cancel
Save