Merge pull request #7361 from nextcloud/cheap-check-first
check userExists later, saves lookups for appData_INSTANCEID userids
This commit is contained in:
commit
dc10a31a4a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue