Movable mountpoints are always deletable

This commit is contained in:
Robin Appelman 2014-12-17 16:09:28 +01:00
parent 532ba99f1c
commit 9ddd5033d4
1 changed files with 5 additions and 0 deletions

View File

@ -280,6 +280,11 @@ class View {
} }
public function isDeletable($path) { public function isDeletable($path) {
$absolutePath = $this->getAbsolutePath($path);
$mount = Filesystem::getMountManager()->find($absolutePath);
if ($mount->getInternalPath($absolutePath) === '') {
return $mount instanceof MoveableMount;
}
return $this->basicOperation('isDeletable', $path); return $this->basicOperation('isDeletable', $path);
} }