From e685dadd555b0369452855cb3050f9a43174e01a Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 20 Feb 2018 19:40:26 +0100 Subject: [PATCH] fix connection check on webpack.data.common --- webpack/data/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack/data/common.js b/webpack/data/common.js index 1e41d3c..7505dc0 100644 --- a/webpack/data/common.js +++ b/webpack/data/common.js @@ -35,8 +35,8 @@ gstore.add('menu_item', { }); /* (3) Gestion du login/logout */ -if( _SERVER.connected ) gstore.get.menu_item.login = { label: 'Connexion', url: 'login', icon: 'login' }; -else gstore.get.menu_item.logout = { label: 'Déconnexion', url: 'logout', icon: 'logout' }; +if( _SERVER.session.connected ) gstore.get.menu_item.logout = { label: 'Déconnexion', url: 'logout', icon: 'logout' }; +else gstore.get.menu_item.login = { label: 'Connexion', url: 'login', icon: 'login' };