Fix: limit to development

This commit is contained in:
Regis Houssin 2009-12-18 14:47:28 +00:00
parent 771ed1e778
commit 74dd4b02d5

View File

@ -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);