Skip to content

Commit

Permalink
Add Changeset (#293)
Browse files Browse the repository at this point in the history
* remove comment

* changeset
  • Loading branch information
scazan authored Nov 13, 2023
1 parent 9b4ad3a commit 0634853
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-brooms-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@gitbook/integration-slack': patch
---

Restrict usage from external connected slack channels
2 changes: 0 additions & 2 deletions integrations/slack/src/handlers/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ export function createSlackEventsHandler(

// check for bot_id so that the bot doesn't trigger itself
// check whether this was triggered from an external channel

// if (bot_id || isExternalChannel) {
if (!isAllowedToRespond(eventPayload)) {
return new Response(null, {
status: 200,
Expand Down

0 comments on commit 0634853

Please sign in to comment.