Skip to content

Commit 9e29f86

Browse files
committed
Fix scoping of project-scoped events.
1 parent acbaeb2 commit 9e29f86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/2025-09-03_project-webhooks.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ BEGIN
118118
)
119119
)
120120
AND (ns.filter IS NULL OR NEW.data @> ns.filter)
121+
AND (ns.scope_project_id IS NULL OR ns.scope_project_id IS NOT DISTINCT FROM NEW.project_id)
121122
AND
122123
-- A subscriber can be notified if the event is in their scope or if they have permission to the resource,
123124
-- or if the subscription is owned by the project which the event is scoped to.

0 commit comments

Comments
 (0)