mirror of
https://github.com/grocy/grocy.git
synced 2025-08-24 14:06:44 +00:00
Reworked authentication related menu item handling (fixes #1462)
This commit is contained in:
@@ -15,11 +15,6 @@ class SessionAuthMiddleware extends AuthMiddleware
|
||||
|
||||
public function authenticate(Request $request)
|
||||
{
|
||||
if (!defined('GROCY_SHOW_AUTH_VIEWS'))
|
||||
{
|
||||
define('GROCY_SHOW_AUTH_VIEWS', true);
|
||||
}
|
||||
|
||||
$sessionService = SessionService::getInstance();
|
||||
|
||||
if (!isset($_COOKIE[SessionService::SESSION_COOKIE_NAME]) || !$sessionService->IsValidSession($_COOKIE[SessionService::SESSION_COOKIE_NAME]))
|
||||
|
Reference in New Issue
Block a user