Skip to content

Commit d3f8b5d

Browse files
authored
Correcting error: removing this (#667)
1 parent 15ebae8 commit d3f8b5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/challenge-helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class ChallengeHelper {
119119
// check groups authorization
120120
if (challenge.groups && challenge.groups.length > 0) {
121121
if (currentUser.isMachine || hasAdminRole(currentUser)) {
122-
await this.validateGroups(challenge.groups);
122+
await validateGroups(challenge.groups);
123123
} else {
124124
await helper.ensureAccessibleByGroupsAccess(currentUser, challenge);
125125
}
@@ -145,7 +145,7 @@ class ChallengeHelper {
145145
// check groups access to be updated group values
146146
if (data.groups && data.groups.length > 0) {
147147
if (currentUser.isMachine || hasAdminRole(currentUser)) {
148-
await this.validateGroups(data.groups);
148+
await validateGroups(data.groups);
149149
} else {
150150
await ensureAcessibilityToModifiedGroups(currentUser, data, challenge);
151151
}

0 commit comments

Comments
 (0)