/**
	 * @see	wcf\page\IPage::readParameters()
	 */
	public function readParameters() {
		parent::readParameters();
		
		// get group
		if (isset($_REQUEST['id'])) $this->groupID = intval($_REQUEST['id']);
		$group = new UserGroup($this->groupID);
		if (!$group->groupID) {
			throw new IllegalLinkException();
		}
		if (!$group->isAccessible()) {
			throw new PermissionDeniedException();
		}
		
		$this->group = new UserGroupEditor($group);
		$this->optionHandler->setUserGroup($group);
	}
 /**
  * @see wcf\form\IForm::validate()
  */
 public function validate()
 {
     parent::validate();
     if (empty($this->userIDs)) {
         throw new IllegalLinkException();
     }
     // groups
     foreach ($this->groupIDs as $groupID) {
         $group = new UserGroup($groupID);
         if (!$group->groupID) {
             throw new UserInputException('groupIDs');
         }
         if (!$group->isAccessible()) {
             throw new PermissionDeniedException();
         }
     }
 }