mirror of
https://github.com/grocy/grocy.git
synced 2025-11-19 00:00:20 +00:00
Prepare for embedded mode
This commit is contained in:
@@ -22,7 +22,7 @@ class ApiKeyAuthMiddleware extends BaseMiddleware
|
||||
$route = $request->getAttribute('route');
|
||||
$routeName = $route->getName();
|
||||
|
||||
if ($this->ApplicationService->IsDemoInstallation())
|
||||
if ($this->ApplicationService->IsDemoInstallation() || $this->ApplicationService->IsEmbeddedInstallation())
|
||||
{
|
||||
$response = $next($request, $response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user