File tree 1 file changed +0
-12
lines changed
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -465,18 +465,6 @@ function * checkCreateAccess (authUser, subEntity) {
465
465
throw new errors . HttpStatusError ( 400 , `You cannot create a submission for a challenge while you are an iterative reviewer` )
466
466
}
467
467
468
- // Check if the User is assigned as the reviewer for the contest
469
- const reviewers = _ . filter ( currUserRoles , { role : 'Reviewer' } )
470
- if ( reviewers . length !== 0 ) {
471
- throw new errors . HttpStatusError ( 400 , `You cannot create a submission for a challenge while you are a reviewer` )
472
- }
473
-
474
- // Check if the User is assigned as the iterative reviewer for the contest
475
- const iterativeReviewers = _ . filter ( currUserRoles , { role : 'Iterative Reviewer' } )
476
- if ( iterativeReviewers . length !== 0 ) {
477
- throw new errors . HttpStatusError ( 400 , `You cannot create a submission for a challenge while you are an iterative reviewer` )
478
- }
479
-
480
468
// Check if the User is registered for the contest
481
469
const submitters = _ . filter ( currUserRoles , { role : 'Submitter' } )
482
470
if ( submitters . length === 0 ) {
You can’t perform that action at this time.
0 commit comments