Correct share permissions for external storages

This commit is contained in:
Roeland Jago Douma 2016-03-31 20:17:59 +02:00
parent 8c0ef4c4bd
commit 5334bcce66
1 changed files with 9 additions and 0 deletions

View File

@ -228,6 +228,15 @@ abstract class Node implements \Sabre\DAV\INode {
$permissions = $storage->getPermissions($path);
}
/*
* 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
*/