summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2021-06-02 17:02:00 +0200
committerGitHub <noreply@github.com>2021-06-02 17:02:00 +0200
commitd0cf20cc51c6f7d119d21d3ea3ed81b9b52f2c9d (patch)
tree09f3e75be13540a37771d5f4aad055c24019cc74 /lib/private/Files
parentac4ff6c9e3bbbcf394b634a20374e0f20bef9744 (diff)
parented2d02d5f1000c76776c6e8dbe24fa787ffe6d0d (diff)
downloadnextcloud-server-d0cf20cc51c6f7d119d21d3ea3ed81b9b52f2c9d.tar.gz
nextcloud-server-d0cf20cc51c6f7d119d21d3ea3ed81b9b52f2c9d.zip
Merge pull request #26792 from nextcloud/user-delete-cleanup-files
better cleanup of user files on user deletion
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Storage/Common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php
index aa2aeee403b..21baea1b78f 100644
--- a/lib/private/Files/Storage/Common.php
+++ b/lib/private/Files/Storage/Common.php
@@ -153,7 +153,7 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage {
public function isDeletable($path) {
if ($path === '' || $path === '/') {
- return false;
+ return $this->isUpdatable($path);
}
$parent = dirname($path);
return $this->isUpdatable($parent) && $this->isUpdatable($path);