mirror of
https://github.com/flextype/flextype.git
synced 2025-08-16 01:54:28 +02:00
@@ -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') : ''
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user