From d55ea1a2d1453a24397752b47ff8c8e55770cac0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 31 Aug 2011 22:33:37 +0000 Subject: [PATCH] Can edit style if admin even if demo --- htdocs/user/param_ihm.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/user/param_ihm.php b/htdocs/user/param_ihm.php index b510800f754..395224478e8 100644 --- a/htdocs/user/param_ihm.php +++ b/htdocs/user/param_ihm.php @@ -185,9 +185,8 @@ if ($_GET["action"] == 'edit') print '
'; - // Theme - show_theme($fuser,empty($dolibarr_main_demo)?1:0,true); + show_theme($fuser,(($user->admin || empty($dolibarr_main_demo))?1:0),true); print '';