From d32832fabc11c61bcbfb5ee5b4fd77dbfbf2da6a Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 9 Oct 2023 14:32:30 +0200 Subject: [PATCH] update --- 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 a8db3a823..c768a0621 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()) { + if (!auth()->user() || !isCloud() || !auth()->user()->instanceAdmin()) { return $next($request); } if (!auth()->user()->hasVerifiedEmail()) {