From 06f59cf853e01905654be89af2a17e9ed4ffdf1d Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Sun, 29 Sep 2013 15:08:00 -0400 Subject: [PATCH] closes #310 --- src/routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api.js b/src/routes/api.js index 34135bbcf9..40b19aec91 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -123,7 +123,7 @@ var user = require('./../user.js'), app.get('/category/:id/:slug?', function (req, res, next) { var uid = (req.user) ? req.user.uid : 0; categories.getCategoryById(req.params.id, uid, function (err, data) { - if (!err) + if (!err && data && data.disabled === "0") res.json(data); else next();