aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-builds.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-09-27 19:32:32 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-09-28 11:23:43 +0300
commitd3f7242eb9e0476fb0c1d3caf1c6cfdfebab63d1 (patch)
tree4d3b52e750d12c45315cf963580cde4b5969a5fe /mod/mod-builds.cxx
parentd33e656f1169bb6744ecb3418bed68340d0d3b97 (diff)
Add support for explicit hidden target configuration class
Diffstat (limited to 'mod/mod-builds.cxx')
-rw-r--r--mod/mod-builds.cxx4
1 files changed, 2 insertions, 2 deletions
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);