Kaynağa Gözat

apply interactions

zahmis 4 yıl önce
ebeveyn
işleme
842dadf081

+ 1 - 1
packages/app/src/server/routes/apiv3/slack-integration.js

@@ -239,7 +239,7 @@ module.exports = (crowi) => {
     return handleInteractions(req, res, client);
     return handleInteractions(req, res, client);
   });
   });
 
 
-  router.post('/proxied/interactions', verifyAccessTokenFromProxy, checkCommandPermission, async(req, res) => {
+  router.post('/proxied/interactions', verifyAccessTokenFromProxy, checkInteractionspermission, async(req, res) => {
     const tokenPtoG = req.headers['x-growi-ptog-tokens'];
     const tokenPtoG = req.headers['x-growi-ptog-tokens'];
     const client = await slackIntegrationService.generateClientByTokenPtoG(tokenPtoG);
     const client = await slackIntegrationService.generateClientByTokenPtoG(tokenPtoG);