From bc4ecf8619e8235bd01844b0afa67700508b82fa Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 16 Mar 2015 18:25:26 +0100 Subject: [PATCH] Fix the debug option must works for admin user --- 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 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";