/**
  * @see Page::show()
  */
 public function show()
 {
     // check permission
     if (!WCF::getUser()->getPermission('user.wantedPoster.canViewWantedPoster')) {
         require_once WCF_DIR . 'lib/system/exception/PermissionDeniedException.class.php';
         throw new PermissionDeniedException();
     } else {
         if ($this->user->ignoredUser) {
             require_once WCF_DIR . 'lib/system/exception/NamedUserException.class.php';
             throw new NamedUserException(WCF::getLanguage()->get('wcf.user.profile.error.ignoredUser', array('$username' => StringUtil::encodeHTML($this->user->username))));
         }
     }
     if (WCF::getUser()->getPermission('user.wantedPoster.canViewMembersListTab') && WCF::getUser()->getPermission('user.membersList.canView')) {
         HeaderMenu::setActiveMenuItem('wcf.header.menu.memberslist');
     } else {
         if (WCF::getUser()->getPermission('user.wantedPoster.canViewHeaderMenu')) {
             HeaderMenu::setActiveMenuItem('wcf.header.menu.userWantedPoster');
         }
     }
     require_once WCF_DIR . 'lib/page/util/menu/UserProfileMenu.class.php';
     UserProfileMenu::getInstance()->userID = $this->userID;
     UserProfileMenu::getInstance()->setActiveMenuItem('wcf.user.profile.menu.link.wantedPoster');
     // get attachments
     require_once WCF_DIR . 'lib/data/message/attachment/Attachments.class.php';
     $attachments = new Attachments($this->userID, 'wantedPoster');
     $this->attachmentList = $attachments->getSortedAttachments();
     require_once WCF_DIR . 'lib/data/message/bbcode/AttachmentBBCode.class.php';
     AttachmentBBCode::setAttachments($this->attachmentList);
     parent::show();
 }