codecombat/server/handlers/mail_sent_handler.coffee
2016-04-07 09:40:53 -07:00

12 lines
338 B
CoffeeScript

MailSent = require './../models/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()