/** * @see \wcf\data\IGroupedUserListAction::validateGetGroupedUserList() */ public function validateGetGroupedUserList() { $this->readInteger('pollID'); // read poll $this->poll = new Poll($this->parameters['pollID']); if (!$this->poll->pollID) { throw new UserInputException('pollID'); } else { if (!$this->poll->canViewParticipants()) { throw new PermissionDeniedException(); } } }