コード例 #1
0
 /**
  * @see Page::show()
  */
 public function show()
 {
     if (!WCF::getUser()->getPermission('user.board.canStartPollInReply')) {
         $this->showPoll = false;
     }
     // show form
     parent::show();
 }
コード例 #2
0
 /**
  * @see Page::show()
  */
 public function show()
 {
     if ($this->thread->firstPostID != $this->post->postID && !WCF::getUser()->getPermission('user.board.canStartPollInReply')) {
         $this->showPoll = false;
     }
     $this->attachmentListEditor = new MessageAttachmentListEditor(array($this->postID), 'post', PACKAGE_ID, WCF::getUser()->getPermission('user.board.maxAttachmentSize'), WCF::getUser()->getPermission('user.board.allowedAttachmentExtensions'), WCF::getUser()->getPermission('user.board.maxAttachmentCount'));
     $this->pollEditor = new PollEditor($this->post->pollID, 0, 'post', WCF::getUser()->getPermission('user.board.canStartPublicPoll'));
     parent::show();
 }