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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user