Correct share permissions for external storages
This commit is contained in:
parent
8c0ef4c4bd
commit
5334bcce66
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue