允许管理员查看其他人的工单

This commit is contained in:
jysperm
2014-04-17 01:15:22 +08:00
parent 4a3222edfa
commit bcfe36a37a
2 changed files with 3 additions and 2 deletions

0
core/api/admin.coffee Normal file
View File

View File

@@ -39,8 +39,9 @@ module.exports =
unless ticket
return res.send 404
unless mTicket.hasMember ticket, account
return res.send 403
unless mAccount.inGroup account, 'root'
unless mTicket.hasMember ticket, account
return res.send 403
res.render 'ticket/view',
account: account