Added Artisan access to LevelComponents.

This commit is contained in:
Nick Winter 2015-03-01 20:59:50 -08:00
parent dc56a50b75
commit 7de6fcf5fd

View file

@ -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 = {}