From fb338a00cbfff85857c620c29196b17a34bdfde5 Mon Sep 17 00:00:00 2001 From: Alys Date: Fri, 18 Mar 2016 01:35:31 +1000 Subject: [PATCH] prevent quests being started in guilds --- website/src/controllers/api-v2/groups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/controllers/api-v2/groups.js b/website/src/controllers/api-v2/groups.js index 8bd64e2a76..b4162558cf 100644 --- a/website/src/controllers/api-v2/groups.js +++ b/website/src/controllers/api-v2/groups.js @@ -907,7 +907,7 @@ api.questAccept = function(req, res, next) { var user = res.locals.user; var key = req.query.key; - if (!group) return res.json(400, {err: "Must be in a party to start quests."}); + if (!group || group.type !== 'party') return res.json(400, {err: "Must be in a party to start quests."}); // If ?key=xxx is provided, we're starting a new quest and inviting the party. Otherwise, we're a party member accepting the invitation if (key) {