/** * @see \wcf\page\IPage::show() */ public function show() { if (empty($_POST) && $this->submit) { if ($this->userID) { $this->useCaptcha = false; } $this->submit(); } parent::show(); }
/** * @see \wcf\page\IPage::show() */ public function show() { WCF::getSession()->checkPermissions(array('user.profile.canMail')); if (!$this->user->isAccessible('canMail')) { throw new PermissionDeniedException(); } parent::show(); }