check userExists later, saves lookups for appData_INSTANCEID userids

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2017-12-01 11:47:56 +01:00 committed by Roeland Jago Douma
parent fe9f100a1b
commit e788ae0cf6
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 1 deletions

View 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;
}