diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-12-17 16:09:28 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-12-17 16:09:28 +0100 |
commit | 9ddd5033d4649da6e1560434e69ff806fdbf8c11 (patch) | |
tree | a2961415beff525d4d731e6041ebfa7b7eafc069 | |
parent | 532ba99f1ccc092dc5ddfbc15b70a027bca3e558 (diff) | |
download | nextcloud-server-9ddd5033d4649da6e1560434e69ff806fdbf8c11.tar.gz nextcloud-server-9ddd5033d4649da6e1560434e69ff806fdbf8c11.zip |
Movable mountpoints are always deletable
-rw-r--r-- | lib/private/files/view.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index c01763cdad3..c21ec88ae0c 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); } |