mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Changed IDE to Visual Studio code and minor style changes
This commit is contained in:
@@ -39,7 +39,7 @@ if (!Grocy::IsDemoInstallation())
|
||||
$route = $request->getAttribute('route');
|
||||
$routeName = $route->getName();
|
||||
|
||||
if (!Grocy::IsValidSession($_COOKIE['grocy_session']) && $routeName !== 'login')
|
||||
if ((!isset($_COOKIE['grocy_session']) || !Grocy::IsValidSession($_COOKIE['grocy_session'])) && $routeName !== 'login')
|
||||
{
|
||||
$response = $response->withRedirect('/login');
|
||||
}
|
||||
|
Reference in New Issue
Block a user