mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-01 15:50:11 -04:00
Merge branch 'master' of https://github.com/codecombat/codecombat
This commit is contained in:
commit
ba38509a1d
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
Reference in a new issue