diff --git a/packages/component-faraday-selectors/src/index.js b/packages/component-faraday-selectors/src/index.js index 2cd317cd3b51cbffacd63559edb2fb690431f2ba..de9d06ea5094aab9ae8bbe30bb58ac56ebe995be 100644 --- a/packages/component-faraday-selectors/src/index.js +++ b/packages/component-faraday-selectors/src/index.js @@ -55,7 +55,11 @@ const cannotViewReviewersDetails = [ ] export const canViewReviewersDetails = (state, collection = {}) => { - if (cannotViewReviewersDetails.includes(get(collection, 'status', 'draft'))) { + const isHeAssigned = !!get(collection, 'handlingEditor', false) + if ( + cannotViewReviewersDetails.includes(get(collection, 'status', 'draft')) || + !isHeAssigned + ) { return false } return canViewReports(state, collection.id) diff --git a/packages/component-manuscript/src/components/ManuscriptLayout.js b/packages/component-manuscript/src/components/ManuscriptLayout.js index fcd451edd3f1b063518ac0d99b8c448ce9c0429b..3020066d37b08af3211718c46d698880690d4273 100644 --- a/packages/component-manuscript/src/components/ManuscriptLayout.js +++ b/packages/component-manuscript/src/components/ManuscriptLayout.js @@ -23,6 +23,8 @@ const messagesLabel = { reject: 'Comments for Author', } +const cannotViewReviewersDetails = ['revisionRequested', 'pendingApproval'] + const ManuscriptLayout = ({ history, assignHE, @@ -169,7 +171,9 @@ const ManuscriptLayout = ({ getSignedUrl={getSignedUrl} highlight={ reviewerReports.length === 0 && - get(collection, 'status', 'draft') !== 'pendingApproval' + !cannotViewReviewersDetails.includes( + get(collection, 'status', 'draft'), + ) } invitations={invitationsWithReviewers} isFetching={isFetching.publonsFetching}