Fix: strictly filter flows by agent UUID to prevent org-level data pollution

This commit is contained in:
ypratama committed 2026-09-07 13:29:20 +07:00
1 parent 068435ffb9
commit 0dcedf5d76
2 files changed
+7 -2

No files matched your search

+2 -1
View File
@@ -37,7 +37,8 @@ function fixDates(obj) {
async function backoneFetch(endpoint, params = {}, agentUuid = null, siteUuid = null) {
if (agentUuid) {
const agentId = agentMap[agentUuid];
if (agentId) {
// Only use filter_agents if agentId is a number or numeric string
if (agentId && !isNaN(Number(agentId))) {
params.filter_agents = `[${agentId}]`;
} else {
params.settings_agent = agentUuid;