예제 #1
0
 /**
  * @see	\wcf\page\IPage::show()
  */
 public function show()
 {
     if (empty($_POST) && $this->submit) {
         if ($this->userID) {
             $this->useCaptcha = false;
         }
         $this->submit();
     }
     parent::show();
 }
예제 #2
0
 /**
  * @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();
 }