Skip to content

Commit

Permalink
Make sure users cannot revoke invites for other orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
ericallam committed Jun 11, 2024
1 parent ca94f0c commit 36ac79a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/webapp/app/models/member.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ export async function revokeInvite({
const invite = await prisma.orgMemberInvite.delete({
where: {
id: inviteId,
organizationId: org.id,
},
select: {
email: true,
Expand Down

0 comments on commit 36ac79a

Please sign in to comment.