From 4e2c859a8d4b1fcf08963dfa10b5e499cd04351d Mon Sep 17 00:00:00 2001 From: Marcel Folaron Date: Mon, 25 Nov 2024 18:01:04 -0500 Subject: [PATCH] Fix authcheck missing parameter --- app/Core/Middleware/AuthCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Core/Middleware/AuthCheck.php b/app/Core/Middleware/AuthCheck.php index 2816b4646..884733eaf 100644 --- a/app/Core/Middleware/AuthCheck.php +++ b/app/Core/Middleware/AuthCheck.php @@ -83,7 +83,7 @@ public function handle(IncomingRequest $request, Closure $next): Response if ( $request instanceof ApiRequest) { self::dispatchEvent('before_api_request', ['application' => app()], 'leantime.core.middleware.apiAuth.handle'); } - $authCheckResponse = $this->authenticate($request, array_keys($this->config->get('auth.guards')), $loginRedirect); + $authCheckResponse = $this->authenticate($request, array_keys($this->config->get('auth.guards')), $loginRedirect, $next); if ($authCheckResponse !== true) { return $authCheckResponse;