Added a line for testing the loading system.

This commit is contained in:
Scott Erickson 2014-04-16 08:03:50 -07:00
parent 94c4179417
commit 25f72a58e6

View file

@ -83,6 +83,7 @@ module.exports = class Handler
@sendSuccess(res, documents) @sendSuccess(res, documents)
getById: (req, res, id) -> getById: (req, res, id) ->
# return @sendNotFoundError(res) # for testing
return @sendUnauthorizedError(res) unless @hasAccess(req) return @sendUnauthorizedError(res) unless @hasAccess(req)
@getDocumentForIdOrSlug id, (err, document) => @getDocumentForIdOrSlug id, (err, document) =>