1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-16 01:54:28 +02:00

Flextype Box Plugin: Admin #125 #117

- Global Vars added
This commit is contained in:
Awilum
2019-06-01 18:53:12 +03:00
parent 579032c560
commit 0ca2c80825

View File

@@ -33,7 +33,8 @@ class GlobalVarsAdminTwigExtension extends \Twig_Extension implements \Twig_Exte
{
return [
'is_logged' => ((Session::exists('role') && Session::get('role') == 'admin') ? true : false),
'username' => Session::exists('username') ? Session::get('username') : ''
'username' => Session::exists('username') ? Session::get('username') : '',
'rolename' => Session::exists('role') ? Session::get('role') : ''
];
}
}