Skip to content

Commit a832ab4

Browse files
committed
fix(provisioning): role attribute scope was wrong
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent 7ddd816 commit a832ab4

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)