Added roles info to api key generation and api key list

This commit is contained in:
Alejandro Celaya
2021-01-11 16:32:59 +01:00
parent c49a0ca040
commit 9e9d213f20
12 changed files with 51 additions and 20 deletions

View File

@@ -28,7 +28,7 @@ class RoleResolver implements RoleResolverInterface
}
if ($domainAuthority !== null) {
$domain = $this->domainService->getOrCreate($domainAuthority);
$roleDefinitions[] = RoleDefinition::forDomain($domain->getId());
$roleDefinitions[] = RoleDefinition::forDomain($domain);
}
return $roleDefinitions;