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