Skip to content

Commit c249c74

Browse files
TEMP FIX
Don't carry out role checks for m2m tokens.
1 parent 8943556 commit c249c74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/SubmissionService.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ function * getSubmission (authUser, submissionId) {
8989
throw new errors.HttpStatusError(404, `Submission with ID = ${submissionId} is not found`)
9090
}
9191

92-
logger.info('Check User access before returning the submission')
93-
if (_.intersection(authUser.roles, ['Administrator']).length === 0) {
94-
yield helper.checkGetAccess(authUser, submissionRecord)
95-
}
92+
// logger.info('Check User access before returning the submission')
93+
// if (_.intersection(authUser.roles, ['Administrator']).length === 0) {
94+
// yield helper.checkGetAccess(authUser, submissionRecord)
95+
// }
9696

9797
// Return the retrieved submission
9898
logger.info(`getSubmission: returning data for submissionId: ${submissionId}`)

0 commit comments

Comments
 (0)