chg: [users:index] Added comment

pull/121/head
Sami Mokaddem 2022-12-09 12:19:29 +01:00
parent d00f765adc
commit 7526f8364f
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class UsersController extends AppController
}
$keycloakUsersParsed = null;
if (!empty(Configure::read('keycloak.enabled'))) {
$keycloakUsersParsed = $this->Users->getParsedKeycloakUser();
// $keycloakUsersParsed = $this->Users->getParsedKeycloakUser();
}
$this->CRUD->index([
'contain' => $this->containFields,
@ -31,6 +31,7 @@ class UsersController extends AppController
'quickFilters' => $this->quickFilterFields,
'conditions' => $conditions,
'afterFind' => function($data) use ($keycloakUsersParsed) {
// TODO: We might want to uncomment this at some point Still need to evaluate the impact
// if (!empty(Configure::read('keycloak.enabled'))) {
// $keycloakUser = $keycloakUsersParsed[$data->username];
// $data['keycloak_status'] = array_values($this->Users->checkKeycloakStatus([$data->toArray()], [$keycloakUser]))[0];

View File

@ -95,7 +95,7 @@ echo $this->element('genericElements/IndexTable/index_table', [
'url' => '/user-settings/index?Users.id={{url_data}}',
'url_data_path' => 'id'
],
// [
// [ // We might want to uncomment this at some point
// 'name' => __('Keycloak status'),
// 'element' => 'keycloak_status',
// 'data_path' => 'keycloak_status',