Properly set read permissions for webdav storages
This commit is contained in:
parent
c8c8106168
commit
3f2cb39aba
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue