codecombat/server/mail/sent/mail_sent_handler.coffee
2014-07-09 16:24:14 -07:00

12 lines
334 B
CoffeeScript

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