public function actionCheck() {
		if (!$this->_modelConfigSync->getFlagTreeSubordinateEnable()) {
			throw new InternalErrorException(__d('cake_ldap', 'The database does not contain information on the tree view'));
		}

		set_time_limit(CHECK_TREE_EMPLOYEE_TIME_LIMIT);
		$treeState = $this->_modelSubordinate->verify();
		$pageHeader = __d('cake_ldap', 'Checking state tree of employees');
		$headerMenuActions = [];
		if ($treeState !== true) {
			$headerMenuActions[] = [
				'fas fa-redo-alt',
				__d('cake_ldap', 'Recovery state of tree'),
				['controller' => 'employees', 'action' => 'recover', 'prefix' => false],
				[
					'title' => __d('cake_ldap', 'Recovery state of tree'),
					'data-toggle' => 'request-only',
				]
			];
		}
		$breadCrumbs = $this->_modelEmployee->getBreadcrumbInfo();
		$breadCrumbs[] = __d('cake_ldap', 'Checking tree');

		$this->_controller->set(compact('treeState', 'pageHeader', 'headerMenuActions', 'breadCrumbs'));
	}