Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: remove check
Marc Seitza32599b8b5b0
diff --git a/ee/features/conversations/lib/api/conversations/index.ts b/ee/features/conversations/lib/api/conversations/index.tsindex 2c5a8074..6fb9f0a8 100644--- a/ee/features/conversations/lib/api/conversations/index.ts+++ b/ee/features/conversations/lib/api/conversations/index.ts@@ -312,24 +312,12 @@ export const conversationService = {teamId,team: { users: { some: { userId } } },},- include: {- team: {- include: {- users: true,- },- },- },});if (!conversation) {throw new Error("Conversation not found");}- // Check if user has access to this conversation's dataroom- if (conversation.team.users.length === 0) {- throw new Error("Unauthorized to delete this conversation");- }-// Delete the conversation (cascade will handle related data like messages, participants, etc.)await prisma.conversation.delete({where: { id: conversationId },