Fix privacy record list

Filter outs non-private module from data list by adding check to see if any sensitive record values exists before pushing record to list.
This commit is contained in:
Vivek Patel
2022-09-28 20:52:27 +05:30
parent 67ebfde016
commit 92324e1495
+4
View File
@@ -460,6 +460,10 @@ func (svc record) searchSensitive(ctx context.Context, userID uint64, namespace
})
}
if len(vv) == 0 {
continue
}
out.Records = append(out.Records, types.SensitiveRecord{
RecordID: r.ID,
Values: vv,