Skip to content
Snippets Groups Projects
Commit be13ebc3 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

fix(editorialComments): fix showing editorial comments issue

parent 8d379957
No related branches found
No related tags found
1 merge request!10Sprint #12
......@@ -65,25 +65,10 @@ export const canMakeDecision = (state, collection) => {
return isEIC && status
}
const editorialStatuses = [
'rejected',
'published',
'pendingApproval',
'revisionRequested',
]
export const canSeeEditorialComments = (state, collectionId) => {
const collection = state.collections.find(c => c.id === collectionId)
const isStaff = currentUserIs(state, 'staff')
if (!isStaff) return false
if (editorialStatuses.includes(get(collection, 'status'))) return false
return true
}
export const getPubsweetError = state => get(state, 'error')
export const canSeeReviewersReports = (state, collectionId) => {
const isHE = isHEToManuscript(state, collectionId)
const isEiC = currentUserIs(state, 'adminEiC')
return isHE || isEiC
}
export const canSeeEditorialComments = canSeeReviewersReports
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment