コード例 #1
0
 /**
  * Does the user authentication.
  */
 protected function initAuth()
 {
     parent::initAuth();
     // user ban
     if (self::getUser()->banned) {
         throw new PermissionDeniedException();
     }
 }
コード例 #2
0
 /**
  * Does the user authentication.
  */
 protected function initAuth()
 {
     parent::initAuth();
     // user ban
     if (self::getUser()->banned) {
         require_once WCF_DIR . 'lib/system/exception/PermissionDeniedException.class.php';
         throw new PermissionDeniedException();
     }
 }