Skip to content

Commit 3c12372

Browse files
committed
Redirect to login.
1 parent 42993ab commit 3c12372

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/Hooks/Auth/Routes.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ public static function template_redirect(): void {
6565
wp_redirect(app_get_initial_page($current_user));
6666
exit;
6767
}
68+
} else {
69+
if (!$is_allowed_page) {
70+
wp_redirect(wp_login_url());
71+
exit;
72+
}
6873
}
6974
}
7075
}

0 commit comments

Comments
 (0)