mirror of
https://github.com/grocy/grocy.git
synced 2025-10-15 09:46:03 +00:00
Reworked authentication related menu item handling (fixes #1462)
This commit is contained in:
@@ -19,11 +19,6 @@ class ApiKeyAuthMiddleware extends AuthMiddleware
|
||||
|
||||
public function authenticate(Request $request)
|
||||
{
|
||||
if (!defined('GROCY_SHOW_AUTH_VIEWS'))
|
||||
{
|
||||
define('GROCY_SHOW_AUTH_VIEWS', true);
|
||||
}
|
||||
|
||||
$routeContext = RouteContext::fromRequest($request);
|
||||
$route = $routeContext->getRoute();
|
||||
$routeName = $route->getName();
|
||||
|
Reference in New Issue
Block a user