mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-02 00:43:34 -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) ->
|
closeIO.getSalesContactEmail fromAddress, (err, salesContactEmail) ->
|
||||||
console.error "Error getting sales contact for #{sender}: #{err}" if err
|
console.error "Error getting sales contact for #{sender}: #{err}" if err
|
||||||
context.recipient.address = salesContactEmail ? config.mail.supportSchools
|
context.recipient.address = salesContactEmail ? config.mail.supportSchools
|
||||||
context.sender.address = fromAddress
|
|
||||||
done context
|
done context
|
||||||
else if recipientID and (user.isAdmin() or ('employer' in (user.get('permissions') ? [])))
|
else if recipientID and (user.isAdmin() or ('employer' in (user.get('permissions') ? [])))
|
||||||
User.findById(recipientID, 'email').exec (err, document) ->
|
User.findById(recipientID, 'email').exec (err, document) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue