zahmis пре 4 година
родитељ
комит
ccde594323
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      packages/app/src/server/routes/apiv3/slack-integration.js

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

@@ -74,7 +74,8 @@ module.exports = (crowi) => {
     const isPermitted = checkPermission(commandPermission, growiCommand.growiCommandType, fromChannel);
     const isPermitted = checkPermission(commandPermission, growiCommand.growiCommandType, fromChannel);
     if (isPermitted) return next();
     if (isPermitted) return next();
 
 
-    return res.status(403).send(`It is not allowed to run '${growiCommand.growiCommandType}' command to this GROWI.`);
+    // IT IS NOT WORKING. FIX THIS GW-7441
+    return res.status(403).send('It is not allowed to run the command to this GROWI.');
   }
   }
 
 
   // REFACTORIMG THIS MIDDLEWARE GW-7441
   // REFACTORIMG THIS MIDDLEWARE GW-7441
@@ -110,6 +111,7 @@ module.exports = (crowi) => {
     const isPermitted = checkPermission(commandPermission, callbacIdkOrActionId, fromChannel);
     const isPermitted = checkPermission(commandPermission, callbacIdkOrActionId, fromChannel);
     if (isPermitted) return next();
     if (isPermitted) return next();
 
 
+    // IT IS NOT WORKING FIX. THIS GW-7441
     return res.status(403).send('It is not allowed to run the command to this GROWI.');
     return res.status(403).send('It is not allowed to run the command to this GROWI.');
   }
   }