Browse Source
Merge pull request #7361 from nextcloud/cheap-check-first
check userExists later, saves lookups for appData_INSTANCEID userids
pull/7369/head
Morris Jobke
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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; |
|
|
|
} |
|
|
|
|
|
|
|
|