From cb6db3625ca085ddd1832262079e15df0a831cd9 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 4 Aug 2016 21:12:03 +0300 Subject: [PATCH] closes #4906 --- src/controllers/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api.js b/src/controllers/api.js index 35f894e002..706a36cef9 100644 --- a/src/controllers/api.js +++ b/src/controllers/api.js @@ -222,7 +222,7 @@ apiController.getObject = function(req, res, next) { apiController.getCurrentUser = function(req, res, next) { if (!req.uid) { - return helpers.notAllowed(req, res); + return res.status(401).json('not-authorized'); } async.waterfall([ function(next) {