mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
13 lines
334 B
CoffeeScript
13 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()
|