Skip to content

Commit

Permalink
Change to allow ‘Manager’ project role to download submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgasper committed Jun 9, 2023
1 parent 50f709f commit dc97f8a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/common/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,13 @@ function * checkGetAccess (authUser, submission) {
if (clientManager.length !== 0) {
return true
}

// Check if the User is a Manager
const manager = _.filter(currUserRoles, { role: 'Manager' })
// Managers have access to all submissions regardless of Phases
if (manager.length !== 0) {
return true
}
// Check for Reviewer / Submitter roles
if (subTrack === 'FIRST_2_FINISH') {
const iterativeReviewer = _.filter(currUserRoles, { role: 'Iterative Reviewer' })
Expand Down

0 comments on commit dc97f8a

Please sign in to comment.