fix: web form filtering (#26122)

This commit is contained in:
Ankush Menat 2024-04-23 17:57:51 +05:30 committed by GitHub
parent 3f0c2330fc
commit b0cc93e9d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -664,7 +664,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"]