From 2ceb430f04e0a0a44e9b1d5eca7187cfa5b24391 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 30 Apr 2024 19:34:34 +0200 Subject: [PATCH] wip #6889 @0.5 --- app/Http/Controllers/CatalogController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/CatalogController.php b/app/Http/Controllers/CatalogController.php index 231ce90..97f4cca 100644 --- a/app/Http/Controllers/CatalogController.php +++ b/app/Http/Controllers/CatalogController.php @@ -21,11 +21,10 @@ class CatalogController extends Controller $relayPath = base_path($cpath) . '/' . $path; $user = Auth::guard('client')->user(); - if ($path === 'index.html' && $user) { + if ($path === 'index.html' && $user !== null) { $html = file_get_contents($relayPath); - $html = str_replace('', '', $html); + $html = str_replace('', '', $html); return response($html)->header('Content-Type', 'text/html'); - } return XSendFileController::sendfileNoCache($relayPath); -- 2.39.5