mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 14:33:59 -04:00
Quick fix for crashing server
Undo when investigating which schema does this
This commit is contained in:
parent
0ce04b147d
commit
e32524536e
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ module.exports = class Handler
|
|||
hasAccessToDocument: (req, document, method=null) ->
|
||||
return true if req.user?.isAdmin()
|
||||
if @modelClass.schema.uses_coco_permissions
|
||||
return document.hasPermissionsForMethod(req.user, method or req.method)
|
||||
return document.hasPermissionsForMethod?(req.user, method or req.method)
|
||||
return true
|
||||
|
||||
formatEntity: (req, document) -> document?.toObject()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue