From d3f7242eb9e0476fb0c1d3caf1c6cfdfebab63d1 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 27 Sep 2023 19:32:32 +0300 Subject: Add support for explicit hidden target configuration class --- mod/mod-builds.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/mod-builds.cxx') diff --git a/mod/mod-builds.cxx b/mod/mod-builds.cxx index 58aa3aa..7ad5fc7 100644 --- a/mod/mod-builds.cxx +++ b/mod/mod-builds.cxx @@ -511,7 +511,7 @@ handle (request& rq, response& rs) for (const auto& c: *target_conf_map_) { - if (!exclude_hidden || belongs (*c.second, "all")) + if (!exclude_hidden || !belongs (*c.second, "hidden")) conf_ids.push_back (c.first); } @@ -798,7 +798,7 @@ handle (request& rq, response& rs) // (tgt.empty () || path_match (c.target.string (), tgt)) && - (!exclude_hidden || belongs (c, "all"))) // Filter hidden. + (!exclude_hidden || !belongs (c, "hidden"))) // Filter hidden. { target_configs.push_back (&c); -- cgit v1.1