codecombat/server/handlers/mail_sent_handler.coffee

13 lines
338 B
CoffeeScript
Raw Normal View History

2016-04-07 12:40:53 -04:00
MailSent = require './../models/MailSent'
Handler = require '../commons/Handler'
class MailSentHandler extends Handler
modelClass: MailSent
editableProperties: ['mailTask','user','sent']
2016-04-07 12:40:53 -04:00
jsonSchema: require '../../app/schemas/models/mail_sent'
hasAccess: (req) ->
req.user?.isAdmin()
module.exports = new MailSentHandler()