/** * Does the user authentication. */ protected function initAuth() { parent::initAuth(); // user ban if (self::getUser()->banned) { throw new PermissionDeniedException(); } }
/** * 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(); } }