zahmis 4 anni fa
parent
commit
ccde594323

+ 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);
     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
@@ -110,6 +111,7 @@ module.exports = (crowi) => {
     const isPermitted = checkPermission(commandPermission, callbacIdkOrActionId, fromChannel);
     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.');
   }