codecombat/server/users/remarks/user_remark_handler.coffee

13 lines
388 B
CoffeeScript
Raw Normal View History

2014-06-17 16:03:08 -04:00
UserRemark = require('./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()