From d67b39a7a3b31f345b41417d13094d63e4092e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Sat, 6 Dec 2025 19:29:19 +0100 Subject: [PATCH] Hide pricing section when auth buttons are hidden and remove registration route blocking - Add `!hideAuthButtons` condition to pricing section visibility - Remove registration route blocking based on `hide_auth_buttons` config - Fix Tailwind class ordering for consistency --- resources/js/pages/welcome.tsx | 6 +++--- routes/web.php | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/resources/js/pages/welcome.tsx b/resources/js/pages/welcome.tsx index 33ef045d..ddbe41b0 100644 --- a/resources/js/pages/welcome.tsx +++ b/resources/js/pages/welcome.tsx @@ -367,7 +367,7 @@ export default function Welcome({ - {subscriptionsEnabled && ( + {subscriptionsEnabled && !hideAuthButtons && (
-
+

Pro Plan

-
+
Founder Promotion
diff --git a/routes/web.php b/routes/web.php index ad48771f..49f072de 100644 --- a/routes/web.php +++ b/routes/web.php @@ -38,10 +38,6 @@ Route::get('terms', function () { return Inertia::render('terms'); })->name('terms'); -if (config('landing.hide_auth_buttons')) { - Route::match(['GET', 'POST'], 'register', fn () => abort(404)); -} - Route::middleware(['auth'])->group(function () { Route::get('setup-encryption', function () { return Inertia::render('auth/setup-encryption');