Пример #1
0
 public function handleProhibitUser($user = '', $value = true)
 {
     if (!$this->user->isAllowed(self::RES, 'prohibit') || empty($user) || !is_numeric($user)) {
         $this->goHome();
     }
     $this->userManager->prohibitUser($user, $value);
     $this->template->userList = $this->userManager->getUserList();
     unset($this->template->userList[$this->user->getId()]);
     $this->redrawAjax('users');
 }