mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
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:
parent
c2ac90f341
commit
87f8a4774b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue