(new CPartial('administration.usergroup.grouprights.html', [ 'group_rights' => $data['group_rights'] ]))->getOutput() ]; if (($messages = getMessages()) !== null) { $output['messages'] = $messages->toString(); } if ($data['user']['debug_mode'] == GROUP_DEBUG_MODE_ENABLED) { CProfiler::getInstance()->stop(); $output['debug'] = CProfiler::getInstance()->make()->toString(); } echo json_encode($output);