mirror of
https://github.com/outline/outline.git
synced 2026-01-06 02:59:54 -06:00
fix: Connecting Slack channel sometimes fails with 404
This commit is contained in:
@@ -173,9 +173,7 @@ if (env.SLACK_CLIENT_ID && env.SLACK_CLIENT_SECRET) {
|
||||
case IntegrationType.Post: {
|
||||
const collection = await Collection.scope({
|
||||
method: ["withMembership", user.id],
|
||||
}).findByPk(collectionId, {
|
||||
rejectOnEmpty: true,
|
||||
});
|
||||
}).findByPk(collectionId);
|
||||
authorize(user, "read", collection);
|
||||
authorize(user, "update", user.team);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user