Skip to content

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

fix: make incoming webhooks visible to all users

Marc Seitz76d6926e3834
diff --git a/pages/api/teams/[teamId]/incoming-webhooks/index.ts b/pages/api/teams/[teamId]/incoming-webhooks/index.ts
index 44d231a1..a50fa61a 100644
--- a/pages/api/teams/[teamId]/incoming-webhooks/index.ts
+++ b/pages/api/teams/[teamId]/incoming-webhooks/index.ts
@@ -44,7 +44,7 @@ export default async function handle(
},
});
- if (!role || role !== "ADMIN") {
+ if (!role) {
return res.status(403).json({ error: "Unauthorized" });
}