Skip to content

Commit 69e4fe7

Browse files
Merge pull request topcoder-platform#79 from topcoder-platform/role-check-patch
TEMP FIX
2 parents 8943556 + c249c74 commit 69e4fe7

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)