From 64925df3eb1eda3a36898e1120b9db641468991f Mon Sep 17 00:00:00 2001 From: sarojbehera1 Date: Thu, 12 Oct 2023 14:52:05 +0530 Subject: [PATCH] Correcting error: removing this --- src/common/challenge-helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/challenge-helper.js b/src/common/challenge-helper.js index 485bc179..f83b7016 100644 --- a/src/common/challenge-helper.js +++ b/src/common/challenge-helper.js @@ -119,7 +119,7 @@ class ChallengeHelper { // check groups authorization if (challenge.groups && challenge.groups.length > 0) { if (currentUser.isMachine || hasAdminRole(currentUser)) { - await this.validateGroups(challenge.groups); + await validateGroups(challenge.groups); } else { await helper.ensureAccessibleByGroupsAccess(currentUser, challenge); } @@ -145,7 +145,7 @@ class ChallengeHelper { // check groups access to be updated group values if (data.groups && data.groups.length > 0) { if (currentUser.isMachine || hasAdminRole(currentUser)) { - await this.validateGroups(data.groups); + await validateGroups(data.groups); } else { await ensureAcessibilityToModifiedGroups(currentUser, data, challenge); }