From 64fd2596e7c3c8bb839c08320b08e7567921faef Mon Sep 17 00:00:00 2001 From: Alex Thomassen Date: Tue, 19 Dec 2023 22:10:45 +0000 Subject: [PATCH] Fix auth check for /viewer --- app/Http/Requests/ViewerRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/ViewerRequest.php b/app/Http/Requests/ViewerRequest.php index 77676e9..a0fec2e 100644 --- a/app/Http/Requests/ViewerRequest.php +++ b/app/Http/Requests/ViewerRequest.php @@ -13,7 +13,7 @@ class ViewerRequest extends FormRequest */ public function authorize(): bool { - if (Auth::check()) { + if (!Auth::check()) { return false; }