mirror of
https://github.com/flextype/flextype.git
synced 2025-08-18 19:01:40 +02:00
feat(admin-plugin): add new Global Var uuid for admin plugin Twig Templates
This commit is contained in:
@@ -37,6 +37,7 @@ class GlobalVarsAdminTwigExtension extends Twig_Extension implements Twig_Extens
|
||||
{
|
||||
return [
|
||||
'is_logged' => (Session::exists('role') && Session::get('role') === 'admin'),
|
||||
'uuid' => Session::exists('uuid') ? Session::get('uuid') : '',
|
||||
'username' => Session::exists('username') ? Session::get('username') : '',
|
||||
'rolename' => Session::exists('role') ? Session::get('role') : '',
|
||||
];
|
||||
|
Reference in New Issue
Block a user