Ejemplo n.º 1
0
 /**
  * @see Page::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (isset($_REQUEST['userID'])) {
         $this->userID = intval($_REQUEST['userID']);
         require_once WCF_DIR . 'lib/data/user/UserEditor.class.php';
         $this->user = new UserEditor($this->userID);
         if (!$this->user->userID) {
             throw new IllegalLinkException();
         }
         if (!Group::isAccessibleGroup($this->user->getGroupIDs())) {
             throw new PermissionDeniedException();
         }
     }
 }