Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restrict anonymous users to public, live pages. #1675

Merged
merged 1 commit into from Jul 17, 2018

Conversation

Pomax
Copy link
Contributor

@Pomax Pomax commented Jul 17, 2018

This was set to just .live() before, which meant anonymous users could see menu items for pages that were marked as private. This fix adds in an extra queryset restriction to prevent private pages from showing up to users who shouldn't see them.

This was set to just `.live()` before, which meant anonymous users could see menu items for pages that were marked as private. This fix adds in an extra queryset restriction to prevent private pages from showing up to users who shouldn't see them.
alanmoo
alanmoo previously approved these changes Jul 17, 2018
@alanmoo alanmoo self-requested a review July 17, 2018 21:17
@alanmoo alanmoo dismissed their stale review July 17, 2018 21:17

Too soon

@alanmoo alanmoo merged commit 38c2d90 into master Jul 17, 2018
@alanmoo alanmoo deleted the exclude-private-pages branch July 17, 2018 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants