mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 18:26:00 +00:00
Fixed a warning on embedded and demo installations
This commit is contained in:
@@ -30,7 +30,6 @@ class SessionAuthMiddleware extends BaseMiddleware
|
||||
$user = $sessionService->GetDefaultUser();
|
||||
define('GROCY_AUTHENTICATED', true);
|
||||
define('GROCY_USER_USERNAME', $user->username);
|
||||
define('GROCY_USER_ID', $user->id);
|
||||
|
||||
$response = $next($request, $response);
|
||||
}
|
||||
|
Reference in New Issue
Block a user