🐛 Fixed incorrect member gating on custom static page routes

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
This commit is contained in:
Rish 2020-08-03 17:28:55 +05:30
parent 2a4ad0e10f
commit f770e9f2ad

View File

@ -19,7 +19,7 @@ function processQuery(query, locals) {
Object.assign(query.options, {
context: {
members: locals.member
member: locals.member
}
});