diff options
Diffstat (limited to 'apps/dav')
-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) || |