Skip to content

Commit

Permalink
fix: web form filtering (#26122)
Browse files Browse the repository at this point in the history
(cherry picked from commit b0cc93e)
  • Loading branch information
ankush authored and mergify[bot] committed Apr 23, 2024
1 parent ca7148e commit 0c38f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/website/doctype/web_form/web_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ def get_link_options(web_form_name, doctype, allow_read_on_all_link_options=Fals
)

link_options, filters = [], {}
if not allow_read_on_all_link_options:
if web_form.login_required and not allow_read_on_all_link_options:
filters = {"owner": frappe.session.user}

fields = ["name as value"]
Expand Down

0 comments on commit 0c38f94

Please sign in to comment.