fix: prevent cross-tenant comment deletion and edit
This commit is contained in:
@@ -45,6 +45,7 @@ export const getByPublicId = (db: dbClient, publicId: string) => {
|
||||
publicId: true,
|
||||
comment: true,
|
||||
createdBy: true,
|
||||
cardId: true,
|
||||
},
|
||||
where: eq(comments.publicId, publicId),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user