1
0
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:
Awilum
2020-01-07 17:01:37 +03:00
parent b45348931f
commit 9f0d3d64f1

View File

@@ -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') : '',
];