Skip to content

Commit 0cba11f

Browse files
committed
Typo fixes
1 parent 803e804 commit 0cba11f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/SubmissionService.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ function * deleteSubmission (authUser, submissionId) {
578578
throw new errors.HttpStatusError(404, `Submission with ID = ${submissionId} is not found`)
579579
}
580580

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

585585
// Filter used to delete the record

0 commit comments

Comments
 (0)