diff --git a/src/Controller/UsersController.php b/src/Controller/UsersController.php index 989025c..771672d 100644 --- a/src/Controller/UsersController.php +++ b/src/Controller/UsersController.php @@ -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]; diff --git a/templates/Users/index.php b/templates/Users/index.php index 6c28dd2..74fa00d 100644 --- a/templates/Users/index.php +++ b/templates/Users/index.php @@ -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',