Explorar el Código

add midleware

zahmis hace 5 años
padre
commit
ed1cfa30a9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/server/routes/apiv3/slack-integration-settings.js

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

@@ -256,7 +256,7 @@ module.exports = (crowi) => {
    *          200:
    *            description: Succeeded to update access token for slack
    */
-  router.put('/access-tokens', async(req, res) => {
+  router.put('/access-tokens', loginRequiredStrictly, adminRequired, csrf, async(req, res) => {
     // TODO imple generate tokens at GW-5859. The following req.body is temporary.
     const { tokenGtoP, tokenPtoG } = req.body;
     try {