Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: allow deleting documents by any team member
Marc Seitzccf659ee2ea3
diff --git a/pages/api/teams/[teamId]/documents/[id]/index.ts b/pages/api/teams/[teamId]/documents/[id]/index.tsindex 4c21af95..2d9845ea 100644--- a/pages/api/teams/[teamId]/documents/[id]/index.ts+++ b/pages/api/teams/[teamId]/documents/[id]/index.ts@@ -116,7 +116,7 @@ export default async function handle(team: {users: {some: {- role: "ADMIN",+ // role: "ADMIN", // TODO: add role check when deleting documentuserId: userId,},},