itizawa пре 4 година
родитељ
комит
990e381a35
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      src/server/routes/apiv3/slack-integration-settings.js

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

@@ -452,8 +452,7 @@ module.exports = (crowi) => {
    *           200:
    *             description: Succeeded to delete botType setting.
    */
-  //  loginRequiredStrictly, adminRequired, csrf, validator.RelationTest, apiV3FormValidator,
-  router.post('/with-proxy/relation-test', async(req, res) => {
+  router.post('/with-proxy/relation-test', loginRequiredStrictly, adminRequired, csrf, validator.RelationTest, apiV3FormValidator, async(req, res) => {
     const currentBotType = crowi.configManager.getConfig('crowi', 'slackbot:currentBotType');
     if (currentBotType === 'customBotWithoutProxy') {
       const msg = 'Not Proxy Type';