zahmis 4 ani în urmă
părinte
comite
17a46f141a
1 a modificat fișierele cu 0 adăugiri și 7 ștergeri
  1. 0 7
      packages/slackbot-proxy/src/services/RelationsService.ts

+ 0 - 7
packages/slackbot-proxy/src/services/RelationsService.ts

@@ -128,13 +128,6 @@ export class RelationsService {
 
 
       [...singleUse, ...broadCastUse].forEach(async(tempCommandName) => {
       [...singleUse, ...broadCastUse].forEach(async(tempCommandName) => {
 
 
-        // ex. search OR search:handlerName
-        const commandRegExp = new RegExp(`(^${tempCommandName}$)|(^${tempCommandName}:\\w+)`);
-        // skip this forEach loop if the requested command is not in permissionsForBroadcastUseCommands and permissionsForSingleUseCommands
-        if (!commandRegExp.test(actionId) && !commandRegExp.test(callbackId)) {
-          return;
-        }
-
         // case: singleUse
         // case: singleUse
         permissionForInteractions = relation.permissionsForSingleUseCommands[tempCommandName];
         permissionForInteractions = relation.permissionsForSingleUseCommands[tempCommandName];
         // case: broadcastUse
         // case: broadcastUse