diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php index fc7fbc74f4d..f8fdb461d1e 100644 --- a/htdocs/admin/const.php +++ b/htdocs/admin/const.php @@ -229,7 +229,7 @@ $sql.= ", note"; $sql.= ", entity"; $sql.= " FROM ".MAIN_DB_PREFIX."const"; $sql.= " WHERE entity IN (".$user->entity.",".$conf->entity.")"; -if (empty($user->entity) && $debug) {} // to force for superadmin +if ((empty($user->entity) || $user->admin) && $debug) {} // to force for superadmin else $sql.= " AND visible = 1"; // We must always have this. Otherwise, array is too large and submitting data fails due to apache POST or GET limits $sql.= " ORDER BY entity, name ASC";