Merge branch 'main' of github.com:cerebrate-project/cerebrate into main

dependabot/npm_and_yarn/webroot/theme/braces-3.0.3
Sami Mokaddem 2024-04-09 12:22:09 +02:00
commit e9a79c54fc
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 8 additions and 1 deletions

View File

@ -335,7 +335,7 @@ class AuthKeycloakBehavior extends Behavior
public function getParsedKeycloakUser(): array public function getParsedKeycloakUser(): array
{ {
$response = $this->restApiRequest('%s/admin/realms/%s/users', [], 'get'); $response = $this->restApiRequest('%s/admin/realms/%s/users/?max=999999', [], 'get');
$keycloakUsers = json_decode($response->getStringBody(), true); $keycloakUsers = json_decode($response->getStringBody(), true);
$keycloakUsersParsed = []; $keycloakUsersParsed = [];
$mappers = array_merge(['role_name', 'role_uuid', 'org_uuid', 'org_name'], $this->getMappedFieldList()); $mappers = array_merge(['role_name', 'role_uuid', 'org_uuid', 'org_name'], $this->getMappedFieldList());

View File

@ -80,6 +80,13 @@ class UsersTable extends AppTable
return $success; return $success;
} }
public function afterSave(EventInterface $event, EntityInterface $entity, ArrayObject $options)
{
if ($entity->isNew()) {
$this->handleUserUpdateRouter($entity);
}
}
private function checkPermissionRestrictions(EntityInterface $entity) private function checkPermissionRestrictions(EntityInterface $entity)
{ {
if (!isset($this->PermissionLimitations)) { if (!isset($this->PermissionLimitations)) {