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

Lines changed: 4 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy