Skip to content
Snippets Groups Projects

Sprint 17 features

Merged Bogdan Cochior requested to merge develop into master
6 files
+ 52
38
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -7,10 +7,12 @@ export const isHEToManuscript = (state, collectionId) => {
return get(collection, 'handlingEditor.id') === currentUserId
}
const canMakeRecommendationStatuses = ['reviewCompleted', 'heAssigned']
export const canMakeRecommendation = (state, collection, fragment = {}) => {
if (fragment.id !== last(collection.fragments)) return false
const isHE = isHEToManuscript(state, collection.id)
return isHE && get(collection, 'status') === 'reviewCompleted'
const status = get(collection, 'status')
return isHE && canMakeRecommendationStatuses.includes(status)
}
export const currentUserIs = ({ currentUser: { user } }, role) => {