fix(groups): don't show 404 for solo users (not trying to fetch party in

the first place), fixes #2919
This commit is contained in:
Tyler Renelle 2014-02-21 08:24:13 -08:00
parent c2ac90f341
commit 87f8a4774b

View file

@ -132,7 +132,7 @@ api.get = function(req, res, next) {
populateQuery(gid, q);
q.exec(function(err, group){
if (err) return next(err);
if (!group) return res.json(404,{err: "Group not found or you don't have access."});
if (!group && gid!=='party') return res.json(404,{err: "Group not found or you don't have access."});
res.json(group);
});
};