From 0cba11f7f145480d067f42788e5d97e063d4959e Mon Sep 17 00:00:00 2001 From: Justin Gasper Date: Sun, 14 Aug 2022 06:51:05 +1000 Subject: [PATCH] Typo fixes --- src/services/SubmissionService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/SubmissionService.js b/src/services/SubmissionService.js index 276e6555..2a6f0fb6 100755 --- a/src/services/SubmissionService.js +++ b/src/services/SubmissionService.js @@ -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