3 namespace BookStack\Http\Middleware;
10 * Handle an incoming request.
12 * @param \Illuminate\Http\Request $request
13 * @param \Closure $next
14 * @param string $allowedGuards
18 public function handle($request, Closure $next, ...$allowedGuards)
20 $activeGuard = config('auth.method');
21 if (!in_array($activeGuard, $allowedGuards)) {
22 session()->flash('error', trans('errors.permission'));
27 return $next($request);