diff --git a/apps/files_trashbin/lib/Storage.php b/apps/files_trashbin/lib/Storage.php index 1193d6ec56..5eaf502f23 100644 --- a/apps/files_trashbin/lib/Storage.php +++ b/apps/files_trashbin/lib/Storage.php @@ -237,7 +237,7 @@ class Storage extends Wrapper { return false; } - if ($this->userManager->userExists($parts[1]) && $parts[2] === 'files') { + if ($parts[2] === 'files' && $this->userManager->userExists($parts[1])) { return true; }