disableCsrfValidation(); } protected function checkInput() { return true; } protected function checkPermissions() { return $this->checkAccess(CRoleHelper::UI_REPORTS_SYSTEM_INFO); } protected function doAction() { $response = new CControllerResponseData([ 'system_info' => CSystemInfoHelper::getData(), 'user_type' => CWebUser::getType() ]); $response->setTitle(_('System information')); $this->setResponse($response); } }