Explorar el Código

adjust middle wares

itizawa hace 5 años
padre
commit
990e381a35
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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';