summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/storage/common.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index 4799c865142..4680971b278 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -95,7 +95,11 @@ abstract class Common implements \OC\Files\Storage\Storage {
}
public function isDeletable($path) {
- return $this->isUpdatable($path);
+ if ($path === '' or $path === '/') {
+ return false;
+ }
+ $parent = dirname($path);
+ return $this->isUpdatable($parent);
}
public function isSharable($path) {