isInstanceAdmin()

This commit is contained in:
Andras Bacsai 2023-10-09 14:38:44 +02:00
parent d32832fabc
commit 5cea9c4603

View File

@ -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()) {