fix: web form filtering (#26122)
This commit is contained in:
parent
3f0c2330fc
commit
b0cc93e9d7
1 changed files with 1 additions and 1 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue