Skip to content

Commit

Permalink
Merge pull request #1209 from elie222/fix/rule-endpoint-ownership-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Elie Steinbock authored and GitHub committed Jan 5, 2026
2 parents 952c0a2 + 41d5084 commit 06413c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/app/api/user/rules/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function getRule({
emailAccountId: string;
}) {
const rule = await prisma.rule.findUnique({
where: { id: ruleId, emailAccount: { id: emailAccountId } },
where: { id: ruleId, emailAccountId },
include: {
actions: true,
},
Expand Down

0 comments on commit 06413c6

Please sign in to comment.