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:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user