Make it clear why this if condition is there

This commit is contained in:
Johannes Zellner
2016-01-20 12:39:28 +01:00
parent 3007875e35
commit a4d32009ad

View File

@@ -168,7 +168,7 @@ function createUser(username, password, email, displayName, admin, invitor, send
callback(null, user);
// do not send email for admins (this can only be the case for the owner)
// WARNING do not send email for admins (this can only be the case for the owner, the first user creation during activation)
if (!admin) mailer.userAdded(user);
if (sendInvite) mailer.sendInvite(user, invitor);
});