From 5128eae2840b5a5e52a69202ad973c47ea04b7a3 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Thu, 26 Feb 2015 15:21:08 -0800 Subject: [PATCH] Added access to unpublished levels for 'artisan' permissions. --- server/levels/level_handler.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/levels/level_handler.coffee b/server/levels/level_handler.coffee index 921598d3d..5523c75f4 100644 --- a/server/levels/level_handler.coffee +++ b/server/levels/level_handler.coffee @@ -345,11 +345,11 @@ LevelHandler = class LevelHandler extends Handler @sendSuccess res, data hasAccessToDocument: (req, document, method=null) -> + return true if req.user?.isArtisan() method ?= req.method return true if method is null or method is 'get' super(req, document, method) - getLevelPlaytimesBySlugs: (req, res) -> # Returns an array of per-day level average playtimes # Parameters: