Skip to content

Commit 9347919

Browse files
authored
Merge pull request #30 from nextmcloud/memurats-patch-2
Update UserAccountRules.php
2 parents a467c47 + 1802eea commit 9347919

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Rules/UserAccountRules.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ public function deriveAccountState(string $uid, ?string $displayname, ?string $m
139139
'slup_test_account_name' => '-test',
140140
'slup_test_account_explode' => '@'
141141
]);
142-
$user = $this->nmcUserService->userExists($providerName, $uid, true);
143-
if ($user instanceof OCA\UserOIDC\Db\User || $user instanceof OCP\IUser) {
142+
if ($user = $this->nmcUserService->userExists($providerName, $uid, true)) {
144143
$this->logger->info("PROV {$uid}: Modify existing");
145144
return $this->deriveExistingAccountState($user, $displayname, $mainEmail, $quota, $claims, $providerName);
146145
} elseif ($create || $config['slup_test_account_check'] &&

0 commit comments

Comments
 (0)