diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-31 20:17:59 +0200 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-31 20:17:59 +0200 |
commit | 5334bcce6683efc2297b742517c98716dd9d3e43 (patch) | |
tree | b1eb890a0c7acd050cc877c706acee5f1b28acac /apps | |
parent | 8c0ef4c4bda4836aa7f4f3b180d1d132c8ca9879 (diff) | |
download | nextcloud-server-5334bcce6683efc2297b742517c98716dd9d3e43.tar.gz nextcloud-server-5334bcce6683efc2297b742517c98716dd9d3e43.zip |
Correct share permissions for external storages
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/connector/sabre/node.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/dav/lib/connector/sabre/node.php b/apps/dav/lib/connector/sabre/node.php index 86e1844687a..4828cb611ed 100644 --- a/apps/dav/lib/connector/sabre/node.php +++ b/apps/dav/lib/connector/sabre/node.php @@ -229,6 +229,15 @@ abstract class Node implements \Sabre\DAV\INode { } /* + * We can always share non moveable mount points with DELETE and UPDATE + * Eventually we need to do this properly + */ + $mountpoint = $this->info->getMountPoint(); + if (!($mountpoint instanceof MoveableMount)) { + $permissions |= \OCP\Constants::PERMISSION_DELETE | \OCP\Constants::PERMISSION_UPDATE; + } + + /* * Without sharing permissions there are also no other permissions */ if (!($permissions & \OCP\Constants::PERMISSION_SHARE) || |