mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 10:56:53 -05:00
12 lines
338 B
CoffeeScript
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()
|