From f770e9f2ad553bb3363ad2dbdc35e712748ca1a9 Mon Sep 17 00:00:00 2001 From: Rish Date: Mon, 3 Aug 2020 17:28:55 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20incorrect=20member=20gat?= =?UTF-8?q?ing=20on=20custom=20static=20page=20routes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no issue - Member gating on post/page content is done using member context on request's frame - Custom static page route was incorrectly setting the member context as `members` instead of `member`, which caused logged-in members to still not able to see content while logged in as a member - Fix corrects the member context for these routes to use `member` as expected --- core/frontend/services/routing/controllers/static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/frontend/services/routing/controllers/static.js b/core/frontend/services/routing/controllers/static.js index f113d3e5b7..e1f0ea3819 100644 --- a/core/frontend/services/routing/controllers/static.js +++ b/core/frontend/services/routing/controllers/static.js @@ -19,7 +19,7 @@ function processQuery(query, locals) { Object.assign(query.options, { context: { - members: locals.member + member: locals.member } });