Просмотр исходного кода

add loginRequiredStrictly adminRequired

zahmis 5 лет назад
Родитель
Сommit
e4ac4625f6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/server/routes/apiv3/slack-integration.js

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

@@ -282,7 +282,7 @@ module.exports = (crowi) => {
    *          200:
    *          200:
    *            description: Succeeded to send a message to slack work space
    *            description: Succeeded to send a message to slack work space
    */
    */
-  router.post('/test-notification-to-slack-work-space', async(req, res) => {
+  router.post('/test-notification-to-slack-work-space', loginRequiredStrictly, adminRequired, csrf, async(req, res) => {
     const isConnectedToSlack = crowi.slackBotService.isConnectedToSlack;
     const isConnectedToSlack = crowi.slackBotService.isConnectedToSlack;
     const channel = req.body.channel;
     const channel = req.body.channel;
     console.log(channel);
     console.log(channel);