From 5926981e062e71a00e709caa8ec74c19472890b9 Mon Sep 17 00:00:00 2001 From: Mithun Kamath Date: Tue, 8 Feb 2022 23:01:11 +0530 Subject: [PATCH] #266 - allow client managers to download submissions --- src/common/helper.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/helper.js b/src/common/helper.js index 2f55e715..912f47c2 100755 --- a/src/common/helper.js +++ b/src/common/helper.js @@ -549,6 +549,12 @@ function * checkGetAccess (authUser, submission) { if (copilot.length !== 0) { return true } + // Check if the User is a Client Manager + const clientManager = _.filter(currUserRoles, { role: 'Client Manager' }) + // Client Managers have access to all submissions regardless of Phases + if (clientManager.length !== 0) { + return true + } // Check for Reviewer / Submitter roles if (subTrack === 'FIRST_2_FINISH') { const iterativeReviewer = _.filter(currUserRoles, { role: 'Iterative Reviewer' })