mirror of
https://github.com/grocy/grocy.git
synced 2025-09-18 18:46:51 +00:00
Prepare for embedded mode
This commit is contained in:
@@ -19,9 +19,9 @@ class SessionAuthMiddleware extends BaseMiddleware
|
||||
$route = $request->getAttribute('route');
|
||||
$routeName = $route->getName();
|
||||
|
||||
if ($routeName === 'root' || $this->ApplicationService->IsDemoInstallation())
|
||||
if ($routeName === 'root' || $this->ApplicationService->IsDemoInstallation() || $this->ApplicationService->IsEmbeddedInstallation())
|
||||
{
|
||||
define('AUTHENTICATED', $this->ApplicationService->IsDemoInstallation());
|
||||
define('AUTHENTICATED', $this->ApplicationService->IsDemoInstallation() || $this->ApplicationService->IsEmbeddedInstallation());
|
||||
$response = $next($request, $response);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user