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