Revert "fix permissions of mountpoints"
This commit is contained in:
parent
61379c9165
commit
70a0e9c2d3
1 changed files with 2 additions and 6 deletions
|
@ -1351,12 +1351,8 @@ class View {
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($internalPath === '') {
|
||||
if ($mount instanceof MoveableMount) {
|
||||
$data['permissions'] = $data['permissions'] | \OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_DELETE;
|
||||
} else {
|
||||
$data['permissions'] = $data['permissions'] & (\OCP\Constants::PERMISSION_ALL - (\OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_DELETE));
|
||||
}
|
||||
if ($mount instanceof MoveableMount && $internalPath === '') {
|
||||
$data['permissions'] |= \OCP\Constants::PERMISSION_DELETE;
|
||||
}
|
||||
|
||||
$owner = $this->getUserObjectForOwner($storage->getOwner($internalPath));
|
||||
|
|
Loading…
Reference in a new issue