/**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (!WCF::getUser()->userID) {
         throw new IllegalLinkException();
     }
 }
 /**
  * @see Action::readParameters()
  */
 public function readParameters()
 {
     parent::readParameters();
     if (!MODULE_THREAD_MARKING_AS_DONE || !$this->board->enableMarkingAsDone && !WCF::getUser()->userID || WCF::getUser()->userID != $this->thread->userID || !$this->board->getPermission('canMarkAsDoneOwnThread') && $this->thread->isDone) {
         throw new IllegalLinkException();
     }
 }