File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ module.exports = {
47
47
} ,
48
48
CHALLENGE_ROLES : {
49
49
COPILOT : 'Copilot' ,
50
- MANAGER : 'Manager'
50
+ MANAGER : 'Manager' ,
51
+ SUBMITTER : 'Submitter'
51
52
}
52
53
} ,
53
54
VANILLA : {
Original file line number Diff line number Diff line change @@ -335,9 +335,10 @@ function shouldWatchCategories (projectRole, challengeRoles) {
335
335
return true
336
336
}
337
337
338
- // Project Copilots / Challenge Copilots
338
+ // Project Copilots / Challenge Copilots and Submitters
339
339
return ( projectRole === constants . TOPCODER . PROJECT_ROLES . COPILOT ||
340
- ( _ . isArray ( challengeRoles ) && _ . includes ( challengeRoles , constants . TOPCODER . CHALLENGE_ROLES . COPILOT ) )
340
+ ( _ . isArray ( challengeRoles ) && ( _ . includes ( challengeRoles , constants . TOPCODER . CHALLENGE_ROLES . COPILOT ) ||
341
+ _ . includes ( challengeRoles , constants . TOPCODER . CHALLENGE_ROLES . SUBMITTER ) ) )
341
342
)
342
343
}
343
344
@@ -353,11 +354,12 @@ function shouldFollowCategories (projectRole, challengeRoles) {
353
354
return true
354
355
}
355
356
356
- // Project Copilots or Managers / Challenge Copilots and Managers
357
+ // Project Copilots or Managers / Challenge Copilots, Managers and Submitters
357
358
return projectRole === constants . TOPCODER . PROJECT_ROLES . COPILOT ||
358
359
projectRole === constants . TOPCODER . PROJECT_ROLES . MANAGER ||
359
360
( _ . isArray ( challengeRoles ) && ( _ . includes ( challengeRoles , constants . TOPCODER . CHALLENGE_ROLES . COPILOT ) ||
360
- _ . includes ( challengeRoles , constants . TOPCODER . CHALLENGE_ROLES . MANAGER ) )
361
+ _ . includes ( challengeRoles , constants . TOPCODER . CHALLENGE_ROLES . MANAGER ) ||
362
+ _ . includes ( challengeRoles , constants . TOPCODER . CHALLENGE_ROLES . SUBMITTER ) )
361
363
)
362
364
}
363
365
You can’t perform that action at this time.
0 commit comments