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

fix(notifications): send email to new author when requser is not as user

parent 5ab05f63
No related branches found
No related tags found
2 merge requests!34Sprint 17 features,!32Hin 850
...@@ -56,7 +56,7 @@ module.exports = { ...@@ -56,7 +56,7 @@ module.exports = {
} }
const requestUser = await UserModel.find(reqUser) const requestUser = await UserModel.find(reqUser)
if (requestUser.admin) { if (requestUser.id !== user.id) {
sendAddedToManuscriptEmail({ sendAddedToManuscriptEmail({
email, email,
baseUrl, 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