This commit is contained in:
Andras Bacsai 2023-10-09 14:32:30 +02:00
parent 165f0a3d4a
commit d32832fabc

View File

@ -11,7 +11,7 @@ class DecideWhatToDoWithUser
{ {
public function handle(Request $request, Closure $next): Response public function handle(Request $request, Closure $next): Response
{ {
if (!auth()->user() || !isCloud()) { if (!auth()->user() || !isCloud() || !auth()->user()->instanceAdmin()) {
return $next($request); return $next($request);
} }
if (!auth()->user()->hasVerifiedEmail()) { if (!auth()->user()->hasVerifiedEmail()) {