summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-12-01 11:47:56 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-12-01 11:47:56 +0100
commit65d7468bf3c15c7983d9d8e4e73513ffa1d8b973 (patch)
tree3f3ac664aa5339a647bc1fb8c1370b735142f91e /apps/files_trashbin/lib
parentffc627e18e6398ec1dac75e7b72abde52434ff74 (diff)
downloadnextcloud-server-65d7468bf3c15c7983d9d8e4e73513ffa1d8b973.tar.gz
nextcloud-server-65d7468bf3c15c7983d9d8e4e73513ffa1d8b973.zip
check userExists later, saves lookups for appData_INSTANCEID userids
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/Storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Storage.php b/apps/files_trashbin/lib/Storage.php
index 1193d6ec561..5eaf502f236 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;
}