Commit c3f4de1
fix: filter out unpublished pages in cms_page and news_article queries
Add live=True filter to the initial queryset in both cms_page and
news_article GraphQL queries to ensure draft/unpublished pages are
never returned. Previously, unpublished pages could still be fetched
by slug even though only the translated version was being filtered
for live status.
Fixes #4577
Co-authored-by: Marco Acierno <marcoacierno@users.noreply.github.com>1 parent 6b43dee commit c3f4de1
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments