From 425ab3a8f614fe46e28c333f422f2f1bc17efb7a Mon Sep 17 00:00:00 2001 From: Derick M <58572875+TurtIeSocks@users.noreply.github.com> Date: Wed, 10 Jan 2024 08:28:57 -0500 Subject: [PATCH] fix: available for other permissions --- server/src/graphql/resolvers.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/server/src/graphql/resolvers.js b/server/src/graphql/resolvers.js index 863d9f3e6..394fb9595 100644 --- a/server/src/graphql/resolvers.js +++ b/server/src/graphql/resolvers.js @@ -22,9 +22,16 @@ const resolvers = { available: (_, _args, { Event, Db, perms }) => { const data = { pokemon: perms.pokemon ? Event.available.pokemon : [], - gyms: perms.gyms ? Event.available.gyms : [], + gyms: perms.gyms || perms.raids ? Event.available.gyms : [], nests: perms.nests ? Event.available.nests : [], - pokestops: perms.pokestops ? Event.available.pokestops : [], + pokestops: + perms.pokestops || + perms.invasions || + perms.eventStops || + perms.quests || + perms.lures + ? Event.available.pokestops + : [], questConditions: perms.quests ? Db.questConditions : {}, masterfile: { ...Event.masterfile, invasions: Event.invasions }, filters: buildDefaultFilters(perms, Db),