mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-31 07:12:49 -04:00
Added Artisan access to LevelComponents.
This commit is contained in:
parent
dc56a50b75
commit
7de6fcf5fd
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,9 @@ LevelComponentHandler = class LevelComponentHandler extends Handler
|
|||
props.push('official') if req.user?.isAdmin()
|
||||
props
|
||||
|
||||
hasAccessToDocument: (req, document, method) ->
|
||||
if req.user?.isArtisan() then true else super req, document, method
|
||||
|
||||
get: (req, res) ->
|
||||
if req.query.view is 'prop-doc-lookup'
|
||||
projection = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue