Skip to content

Commit 79b65ab

Browse files
fix syntax error
1 parent 82f9e57 commit 79b65ab

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/common/helper.js

-12
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)