From 9ddd5033d4649da6e1560434e69ff806fdbf8c11 Mon Sep 17 00:00:00 2001 From: Robin Appelman <icewind@owncloud.com> Date: Wed, 17 Dec 2014 16:09:28 +0100 Subject: [PATCH] Movable mountpoints are always deletable --- lib/private/files/view.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/private/files/view.php b/lib/private/files/view.php index c01763cdad..c21ec88ae0 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -280,6 +280,11 @@ class View { } 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); } -- GitLab