Skip to content

Commit fd8d005

Browse files
Merge pull request #267 from topcoder-platform/Issue_266
allow client managers to download submissions
2 parents 0f5c242 + 5926981 commit fd8d005

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/common/helper.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,12 @@ function * checkGetAccess (authUser, submission) {
549549
if (copilot.length !== 0) {
550550
return true
551551
}
552+
// Check if the User is a Client Manager
553+
const clientManager = _.filter(currUserRoles, { role: 'Client Manager' })
554+
// Client Managers have access to all submissions regardless of Phases
555+
if (clientManager.length !== 0) {
556+
return true
557+
}
552558
// Check for Reviewer / Submitter roles
553559
if (subTrack === 'FIRST_2_FINISH') {
554560
const iterativeReviewer = _.filter(currUserRoles, { role: 'Iterative Reviewer' })

0 commit comments

Comments
 (0)