From 5cea9c4603aab22d60b0422acda093402f262fb9 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 9 Oct 2023 14:38:44 +0200 Subject: [PATCH] isInstanceAdmin() --- app/Http/Middleware/DecideWhatToDoWithUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/DecideWhatToDoWithUser.php b/app/Http/Middleware/DecideWhatToDoWithUser.php index c768a0621..70bb9dd6c 100644 --- a/app/Http/Middleware/DecideWhatToDoWithUser.php +++ b/app/Http/Middleware/DecideWhatToDoWithUser.php @@ -11,7 +11,7 @@ class DecideWhatToDoWithUser { public function handle(Request $request, Closure $next): Response { - if (!auth()->user() || !isCloud() || !auth()->user()->instanceAdmin()) { + if (!auth()->user() || !isCloud() || isInstanceAdmin()) { return $next($request); } if (!auth()->user()->hasVerifiedEmail()) {