From c7410444f662f55f5374f338cd08ca352ac05f98 Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Fri, 5 Apr 2024 13:52:59 -0400 Subject: [PATCH] squash. genquery2 fix for non-admins - permissions --- server/genquery2/src/genquery2_sql.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/server/genquery2/src/genquery2_sql.cpp b/server/genquery2/src/genquery2_sql.cpp index 9dad38d428..a0db642a45 100644 --- a/server/genquery2/src/genquery2_sql.cpp +++ b/server/genquery2/src/genquery2_sql.cpp @@ -436,7 +436,6 @@ namespace _opts.user_zone, min_perm_level); _state.values.emplace_back(std::string{_opts.user_name}); - _state.values.emplace_back(std::string{_opts.user_zone}); } else if (c_iter != end) { sql += fmt::format(" and pcu.user_name = ? and pcu.zone_name = '{}' and pcoa.access_type_id >= {}",