zahmis 4 лет назад
Родитель
Сommit
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);
     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.');
   }