diff --git a/src/mailer.js b/src/mailer.js index d24377195..ac041e550 100644 --- a/src/mailer.js +++ b/src/mailer.js @@ -210,7 +210,7 @@ function roleChanged(mailTo, user) { debug('Sending mail for roleChanged'); - mailUserEvent(mailTo, user, `now has the role '${user.role}`); + mailUserEvent(mailTo, user, `now has the role '${user.role}'`); } function passwordReset(user) { diff --git a/src/notifications.js b/src/notifications.js index 08d9b5200..5fe931515 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -141,7 +141,7 @@ function roleChanged(performedBy, eventId, user, callback) { actionForAllAdmins([ performedBy, user.id ], function (admin, done) { mailer.roleChanged(admin.email, user); - add(admin.id, eventId, `User '${user.displayName}'s role changed`, `User '${user.username || user.email || user.fallbackEmail}' now has the role '${user.role}'.`, done); + add(admin.id, eventId, `User '${user.displayName}'s role changed`, `User '${user.username || user.email || user.fallbackEmail}' now has the role ${user.role}.`, done); }, callback); }