Skip to content

Commit

Permalink
Typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgasper committed Aug 13, 2022
1 parent 803e804 commit 0cba11f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/SubmissionService.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,8 @@ function * deleteSubmission (authUser, submissionId) {
throw new errors.HttpStatusError(404, `Submission with ID = ${submissionId} is not found`)
}

if (_.intersection(authUser.roles, ['Administrator', 'administrator']).length === 0 && exist.memberId !== authUser.uerId) {
throw new errors.HttpStatusError(403, 'You are now allowed to delete this submission.')
if (_.intersection(authUser.roles, ['Administrator', 'administrator']).length === 0 && exist.memberId !== authUser.userId) {
throw new errors.HttpStatusError(403, 'You do not have permissions to delete this submission.')
}

// Filter used to delete the record
Expand Down

0 comments on commit 0cba11f

Please sign in to comment.