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

feat(reviews): only HE/Admin can invite reviewers

parent a7007b8c
No related branches found
No related tags found
1 merge request!58Sprint #20 - Goal - Reviewers submit report
......@@ -36,7 +36,7 @@ export const canInviteReviewers = (state, collection) => {
return false
const user = selectCurrentUser(state)
const isStaff = currentUserIs(state, 'adminEiC')
const isStaff = currentUserIs(state, 'isAdmin')
const { isAccepted, id: heId } = get(collection, 'handlingEditor', {})
return isAccepted && (user.id === heId || isStaff)
......
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