new: [KC] profile link added

pull/101/head
iglocska 2022-05-17 10:42:44 +02:00
parent 398307e414
commit be064bb0c9
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
2 changed files with 4 additions and 0 deletions

View File

@ -136,6 +136,7 @@ class UsersController extends AppController
if (!empty($responsePayload)) {
return $responsePayload;
}
$this->set('keycloakConfig', Configure::read('keycloak'));
$this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate');
}

View File

@ -15,6 +15,9 @@ if (!empty($field['url'])) {
$field['url'] = str_replace('{{' . $k . '}}', $this->Hash->extract($data, $path)[0], $field['url']);
}
}
if (substr($field['url'], 0, 4) === 'http') {
$baseurl = '';
}
$string = sprintf(
'<a href="%s%s">%s</a>',
$baseurl,