public function actionDetail($id = '') { if (!$id) { throw new \Nette\Application\BadRequestException(); } $this->userDat = $this->userManager->getUserData($id); }
public function actionModerate($id = '') { $moderate = $this->user->isAllowed(self::RES, 'moderate'); if (empty($id)) { throw new \Nette\Application\BadRequestException(); } if (!$moderate) { $this->goHome(); } $user = $this->userManager->getUserData($id); if (!$user) { $this->goHome('Neexistující uživatel'); } $this->userMod = $user; $this->template->combinatedName = \App\Helper\Helper::combineUserName($user); }