File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -459,6 +459,12 @@ function * checkCreateAccess (authUser, subEntity) {
459
459
throw new errors . HttpStatusError ( 400 , `You cannot create a submission for a challenge while you are a reviewer` )
460
460
}
461
461
462
+ // Check if the User is assigned as the iterative reviewer for the contest
463
+ const iterativeReviewers = _ . filter ( currUserRoles , { role : 'Iterative Reviewer' } )
464
+ if ( iterativeReviewers . length !== 0 ) {
465
+ throw new errors . HttpStatusError ( 400 , `You cannot create a submission for a challenge while you are a iterative reviewer` )
466
+ }
467
+
462
468
// Check if the User is registered for the contest
463
469
const submitters = _ . filter ( currUserRoles , { role : 'Submitter' } )
464
470
if ( submitters . length === 0 ) {
You can’t perform that action at this time.
0 commit comments