mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-02 11:58:10 -05:00
13 lines
388 B
CoffeeScript
13 lines
388 B
CoffeeScript
|
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()
|