Skip to content

Commit

Permalink
Update wiki_page.py
Browse files Browse the repository at this point in the history
  • Loading branch information
infectiious authored Feb 26, 2025
1 parent 26caeb2 commit f554feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiki/wiki/doctype/wiki_page/wiki_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def get_page_content(wiki_page_name: str):
if wiki_settings.disable_guest_access and user_is_guest:
disable_guest_access = True

if not wiki_page.allow_guest or disable_guest_access:
if user_is_guest and (not wiki_page.allow_guest or wiki_settings.disable_guest_access):
frappe.local.response.http_status_code = 403
frappe.throw(_("You are not permitted to access this page"), frappe.PermissionError)

Expand Down

0 comments on commit f554feb

Please sign in to comment.