File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 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) {
465465 throw new errors . HttpStatusError ( 400 , `You cannot create a submission for a challenge while you are an iterative reviewer` )
466466 }
467467
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-
480468 // Check if the User is registered for the contest
481469 const submitters = _ . filter ( currUserRoles , { role : 'Submitter' } )
482470 if ( submitters . length === 0 ) {
You can’t perform that action at this time.
0 commit comments