Skip to content

Commit 3ccad1e

Browse files
authored
Merge pull request #1069 from nextcloud/fix/1068/invalid-role-scope
Fix wrong role attribute scope
2 parents 7ddd816 + a832ab4 commit 3ccad1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/ProvisioningService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public function provisionUser(string $tokenUserId, int $providerId, object $idTo
338338
$this->eventDispatcher->dispatchTyped($event);
339339
$this->logger->debug('Role mapping event dispatched');
340340
if ($event->hasValue() && $event->getValue() !== null && $event->getValue() !== '') {
341-
$account->setProperty('role', $event->getValue(), '1', '');
341+
$account->setProperty('role', $event->getValue(), $defaultScopes[IAccountManager::PROPERTY_ROLE] ?? $fallbackScope, '1', '');
342342
}
343343

344344
// Update the headline

0 commit comments

Comments
 (0)