diff --git a/admin/index.php b/admin/index.php index 3ebb195e..b371103b 100644 --- a/admin/index.php +++ b/admin/index.php @@ -31,7 +31,10 @@ require SYSTEM . 'init.php'; require __DIR__ . '/includes/debugbar.php'; $loginService = new LoginService(); -$logged = $loginService->checkLogin(); +$checkLogin = $loginService->checkLogin(); +$logged = $checkLogin['logged']; +$account_logged = $checkLogin['account']; +app()->setAccountLogged($account_logged); $statusService = new StatusService(); $status = $statusService->checkStatus(); diff --git a/system/src/App/App.php b/system/src/App/App.php index 207e2295..2fe38587 100644 --- a/system/src/App/App.php +++ b/system/src/App/App.php @@ -36,6 +36,7 @@ class App $checkLogin = $loginService->checkLogin(); $logged = $checkLogin['logged']; $account_logged = $checkLogin['account']; + $this->accountLogged = $account_logged; $statusService = new StatusService(); $status = $statusService->checkStatus(); diff --git a/system/templates/admin.menus.form.html.twig b/system/templates/admin.menus.form.html.twig index ae5c4dd1..86f137e4 100644 --- a/system/templates/admin.menus.form.html.twig +++ b/system/templates/admin.menus.form.html.twig @@ -14,8 +14,8 @@ {% endfor %} - - + +