is_admin) { return $next($request); } if (Auth::check() && Auth::user()->is_tab) { return $next($request); } return redirect('/')->with('error', 'You do not have access to score tabulation.'); } }