mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
🐛 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:
parent
2a4ad0e10f
commit
f770e9f2ad
@ -19,7 +19,7 @@ function processQuery(query, locals) {
|
||||
|
||||
Object.assign(query.options, {
|
||||
context: {
|
||||
members: locals.member
|
||||
member: locals.member
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user