Skip to content

Commit dc97f8a

Browse files
committed
Change to allow ‘Manager’ project role to download submissions
1 parent 50f709f commit dc97f8a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/common/helper.js

+7
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,13 @@ function * checkGetAccess (authUser, submission) {
551551
if (clientManager.length !== 0) {
552552
return true
553553
}
554+
555+
// Check if the User is a Manager
556+
const manager = _.filter(currUserRoles, { role: 'Manager' })
557+
// Managers have access to all submissions regardless of Phases
558+
if (manager.length !== 0) {
559+
return true
560+
}
554561
// Check for Reviewer / Submitter roles
555562
if (subTrack === 'FIRST_2_FINISH') {
556563
const iterativeReviewer = _.filter(currUserRoles, { role: 'Iterative Reviewer' })

0 commit comments

Comments
 (0)