chg: [users:index] Added comment
parent
d00f765adc
commit
7526f8364f
|
@ -23,7 +23,7 @@ class UsersController extends AppController
|
||||||
}
|
}
|
||||||
$keycloakUsersParsed = null;
|
$keycloakUsersParsed = null;
|
||||||
if (!empty(Configure::read('keycloak.enabled'))) {
|
if (!empty(Configure::read('keycloak.enabled'))) {
|
||||||
$keycloakUsersParsed = $this->Users->getParsedKeycloakUser();
|
// $keycloakUsersParsed = $this->Users->getParsedKeycloakUser();
|
||||||
}
|
}
|
||||||
$this->CRUD->index([
|
$this->CRUD->index([
|
||||||
'contain' => $this->containFields,
|
'contain' => $this->containFields,
|
||||||
|
@ -31,6 +31,7 @@ class UsersController extends AppController
|
||||||
'quickFilters' => $this->quickFilterFields,
|
'quickFilters' => $this->quickFilterFields,
|
||||||
'conditions' => $conditions,
|
'conditions' => $conditions,
|
||||||
'afterFind' => function($data) use ($keycloakUsersParsed) {
|
'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'))) {
|
// if (!empty(Configure::read('keycloak.enabled'))) {
|
||||||
// $keycloakUser = $keycloakUsersParsed[$data->username];
|
// $keycloakUser = $keycloakUsersParsed[$data->username];
|
||||||
// $data['keycloak_status'] = array_values($this->Users->checkKeycloakStatus([$data->toArray()], [$keycloakUser]))[0];
|
// $data['keycloak_status'] = array_values($this->Users->checkKeycloakStatus([$data->toArray()], [$keycloakUser]))[0];
|
||||||
|
|
|
@ -95,7 +95,7 @@ echo $this->element('genericElements/IndexTable/index_table', [
|
||||||
'url' => '/user-settings/index?Users.id={{url_data}}',
|
'url' => '/user-settings/index?Users.id={{url_data}}',
|
||||||
'url_data_path' => 'id'
|
'url_data_path' => 'id'
|
||||||
],
|
],
|
||||||
// [
|
// [ // We might want to uncomment this at some point
|
||||||
// 'name' => __('Keycloak status'),
|
// 'name' => __('Keycloak status'),
|
||||||
// 'element' => 'keycloak_status',
|
// 'element' => 'keycloak_status',
|
||||||
// 'data_path' => 'keycloak_status',
|
// 'data_path' => 'keycloak_status',
|
||||||
|
|
Loading…
Reference in New Issue