From 74dd4b02d5bfc7d15b1f20b9b67bc88494243889 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 18 Dec 2009 14:47:28 +0000 Subject: [PATCH] Fix: limit to development --- htdocs/admin/const.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php index 52a3b2ac220..a85d105c127 100644 --- a/htdocs/admin/const.php +++ b/htdocs/admin/const.php @@ -148,7 +148,7 @@ $sql.= ", note"; $sql.= ", entity"; $sql.= " FROM ".MAIN_DB_PREFIX."const"; $sql.= " WHERE entity IN (".$user->entity.",".$conf->entity.")"; -if ($user->entity) $sql.= " AND visible = 1"; +if ($user->entity || $conf->global->MAIN_FEATURES_LEVEL < 2) $sql.= " AND visible = 1"; $sql.= " ORDER BY entity, name ASC"; dol_syslog("Const::listConstant sql=".$sql);