Skip to content
Snippets Groups Projects
Commit 87e2752f authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

Merge branch 'develop' of gitlab.coko.foundation:xpub/xpub-faraday into hindawi-theme

parents 8980bfa6 9d7063c9
No related branches found
No related tags found
1 merge request!43Sprint #19
......@@ -116,45 +116,27 @@ module.exports = {
})
}
if (
newRecommendation.recommendationType !== 'review' &&
newRecommendation.recommendation !== 'return-to-handling-editor'
) {
if (isEditorInChief || collection.status === 'revisionRequested') {
sendAuthorsEmail({
email,
baseUrl,
titleText,
parsedFragment,
fragmentAuthors,
isEditorInChief,
subjectBaseText,
newRecommendation,
})
}
if (hasPeerReview(collection)) {
sendReviewersEmail({
email,
baseUrl,
UserModel,
titleText,
fragmentHelper,
isEditorInChief,
subjectBaseText,
recommendation: newRecommendation.recommendation,
handlingEditorName: get(collection, 'handlingEditor.name', 'N/A'),
})
sendEiCsEmail({
email,
baseUrl,
userHelper,
titleText,
subjectBaseText,
recommendation: newRecommendation,
})
}
if (hasPeerReview(collection)) {
sendReviewersEmail({
email,
baseUrl,
UserModel,
titleText,
fragmentHelper,
isEditorInChief,
subjectBaseText,
recommendation: newRecommendation.recommendation,
handlingEditorName: get(collection, 'handlingEditor.name', eicName),
})
sendEiCsEmail({
email,
baseUrl,
userHelper,
titleText,
subjectBaseText,
recommendation: newRecommendation,
})
}
}
}
......
......@@ -56,7 +56,7 @@ module.exports = {
}
const requestUser = await UserModel.find(reqUser)
if (requestUser.admin) {
if (requestUser.id !== user.id) {
sendAddedToManuscriptEmail({
email,
baseUrl,
......
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