File tree 2 files changed +7
-3
lines changed 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,11 @@ module.exports = {
40
40
KICK : 'kick'
41
41
} ,
42
42
TOPCODER : {
43
- ROLE_COPILOT : 'copilot' ,
44
- ROLE_MANAGER : 'manager'
43
+ PROJECT_ROLES : {
44
+ COPILOT : 'copilot' ,
45
+ MANAGER : 'manager' ,
46
+ CUSTOMER : 'customer'
47
+ }
45
48
} ,
46
49
VANILLA : {
47
50
CHALLENGES_FORUM : 'Challenges Forums' ,
Original file line number Diff line number Diff line change @@ -181,8 +181,9 @@ async function createVanillaGroup (challenge) {
181
181
}
182
182
183
183
const { body : project } = await topcoderApi . getProject ( challenge . projectId )
184
+ const allProjectRoles = _ . values ( constants . TOPCODER . PROJECT_ROLES )
184
185
const members = _ . filter ( project . members , member => {
185
- return member . role === constants . TOPCODER . ROLE_COPILOT || member . role === constants . TOPCODER . ROLE_MANAGER
186
+ return _ . includes ( allProjectRoles , member . role )
186
187
} )
187
188
188
189
const challengesForums = _ . filter ( template . categories , [ 'name' , constants . VANILLA . CHALLENGES_FORUM ] )
You can’t perform that action at this time.
0 commit comments