zahmis пре 4 година
родитељ
комит
6bf8f158ad
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      packages/slackbot-proxy/src/services/RelationsService.ts

+ 6 - 1
packages/slackbot-proxy/src/services/RelationsService.ts

@@ -116,6 +116,12 @@ export class RelationsService {
   async checkPermissionForInteractions(
       relations:Relation[], actionId:string, callbackId:string, channelName:string,
   ):Promise<checkPermissionForInteractionsResults> {
+    return this.checkEachRelation(relations, actionId, callbackId, channelName);
+  }
+
+  async checkEachRelation(
+      relations:Relation[], actionId:string, callbackId:string, channelName:string,
+  ):Promise<checkPermissionForInteractionsResults> {
 
     const allowedRelations:Relation[] = [];
     const disallowedGrowiUrls:Set<string> = new Set();
@@ -159,7 +165,6 @@ export class RelationsService {
     });
 
     return { allowedRelations, disallowedGrowiUrls, commandName };
-
   }
 
 }