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

fix: prevent private pages from showing in sidebar #243

Merged
merged 4 commits into from
Jun 5, 2024

Conversation

mgiadach
Copy link
Contributor

Wiki Pages have an "Allow Guest" option that, when unchecked, prevents the page from being read from unauthorized users (either non logged-in users or logged-in users without the read permission on the Wiki Page doctype). While this works, if the page belongs to a Sidebar, the page title and link are shown regardless of the "Allow guest" option.

This PR fixes that issue, ensuring that private pages are not displayed in the Sidebar.

Screencast.from.2024-05-29.16-01-42.webm

Related issue: #221

Copy link

cypress bot commented May 30, 2024

Passing run #312 ↗︎

0 5 0 0 Flakiness 0

Details:

Merge 99d73c5 into 0d3aafe...
Project: Wiki Commit: 515ac1f190 ℹ️
Status: Passed Duration: 00:18 💡
Started: May 30, 2024 2:01 PM Ended: May 30, 2024 2:01 PM

Review all test suite changes for PR #243 ↗︎

@mgiadach
Copy link
Contributor Author

mgiadach commented Jun 5, 2024

Hi @rmehta, thanks for your review! Could we merge this, please?

@rmehta rmehta merged commit c01ecd2 into frappe:master Jun 5, 2024
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.

2 participants