Skip to content
Snippets Groups Projects

fix(index(component-faraday-selectors)): EIC and Admin can't make decision when…

Merged Macsimiuc Oana requested to merge HIN-1235 into develop
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -272,9 +272,11 @@ export const getHERecommendation = (state, collectionId, fragmentId) => {
@@ -272,9 +272,11 @@ export const getHERecommendation = (state, collectionId, fragmentId) => {
)
)
}
}
 
const cannotEICandAdminMakeDecision = ['accepted', 'rejected', 'deleted']
export const canMakeDecision = (state, collection = {}) => {
export const canMakeDecision = (state, collection = {}) => {
 
const status = get(collection, 'status', 'draft')
const isEIC = currentUserIs(state, 'adminEiC')
const isEIC = currentUserIs(state, 'adminEiC')
return isEIC
return isEIC && !cannotEICandAdminMakeDecision.includes(status)
}
}
const collectionReviewerReports = state =>
const collectionReviewerReports = state =>