codecombat/server/handlers/user_remark_handler.coffee

13 lines
390 B
CoffeeScript
Raw Normal View History

2016-04-07 12:40:53 -04:00
UserRemark = require './../models/UserRemark'
Handler = require '../commons/Handler'
2014-06-17 16:03:08 -04:00
class UserRemarkHandler extends Handler
modelClass: UserRemark
editableProperties: ['user', 'contact', 'history', 'tasks', 'userName', 'contactName']
2016-04-07 12:40:53 -04:00
jsonSchema: require '../../app/schemas/models/user_remark'
2014-06-17 16:03:08 -04:00
hasAccess: (req) ->
req.user?.isAdmin()
module.exports = new UserRemarkHandler()