Example #1
0
 /**
  * Check what user authorized, if not -- redirect to main page
  *
  */
 public static function check()
 {
     if (!self::isAuthorized()) {
         \Router::reRoute(SITE_PATH);
     }
 }