]> source.dussan.org Git - nextcloud-server.git/commitdiff
check userExists later, saves lookups for appData_INSTANCEID userids 7577/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 1 Dec 2017 10:47:56 +0000 (11:47 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 19 Dec 2017 13:13:37 +0000 (14:13 +0100)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/files_trashbin/lib/Storage.php

index e3fe648281c7de2f1af18228b598a4f199e0be7a..cc2114c8d6b63b2d03301c5dd1377a11c1bdbfac 100644 (file)
@@ -206,7 +206,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;
                }