Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion backend/secuscan/notification_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,10 @@ async def process_finding_notifications(
if not finding:
return []

owner_id = finding.get("owner_id", "default")
rules = await db.fetchall(
"SELECT * FROM notification_rules WHERE is_active = 1 ORDER BY created_at ASC"
"SELECT * FROM notification_rules WHERE is_active = 1 AND owner_id = ? ORDER BY created_at ASC",
(owner_id,),
)
results: List[DeliveryResult] = []
for rule in rules:
Expand Down