Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

check: admin and manager

Marc Seitz2c626b49c28f
diff --git a/pages/api/jobs/send-notification.ts b/pages/api/jobs/send-notification.ts
index 438fe829..f965446b 100644
--- a/pages/api/jobs/send-notification.ts
+++ b/pages/api/jobs/send-notification.ts
@@ -88,7 +88,7 @@ export default async function handle(
// Update the view to mark it as viewed
const users = await prisma.userTeam.findMany({
where: {
- role: "MANAGER",
+ role: { in: ["ADMIN", "MANAGER"] },
teamId: view.document!.teamId,
},
select: {