mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-24 21:13:35 -04:00
🐛Contact Us emails must be sent from approved email
This commit is contained in:
parent
abc42298c6
commit
794f4aadc9
1 changed files with 0 additions and 1 deletions
|
@ -61,7 +61,6 @@ createMailContext = (req, done) ->
|
|||
closeIO.getSalesContactEmail fromAddress, (err, salesContactEmail) ->
|
||||
console.error "Error getting sales contact for #{sender}: #{err}" if err
|
||||
context.recipient.address = salesContactEmail ? config.mail.supportSchools
|
||||
context.sender.address = fromAddress
|
||||
done context
|
||||
else if recipientID and (user.isAdmin() or ('employer' in (user.get('permissions') ? [])))
|
||||
User.findById(recipientID, 'email').exec (err, document) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue