From: Vincent Vanwaelscappel Date: Tue, 30 Apr 2024 17:34:34 +0000 (+0200) Subject: wip #6889 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2ceb430f04e0a0a44e9b1d5eca7187cfa5b24391;p=bastide-resah.git wip #6889 @0.5 --- 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);