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

12 lines
390 B
CoffeeScript

UserRemark = require './../models/UserRemark'
Handler = require '../commons/Handler'
class UserRemarkHandler extends Handler
modelClass: UserRemark
editableProperties: ['user', 'contact', 'history', 'tasks', 'userName', 'contactName']
jsonSchema: require '../../app/schemas/models/user_remark'
hasAccess: (req) ->
req.user?.isAdmin()
module.exports = new UserRemarkHandler()