Skip to content

Commit

Permalink
fix: Apply configured perms on address list (frappe#26334)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush authored and rutwikhdev committed May 11, 2024
1 parent f0d1568 commit 18b6ce2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frappe/contacts/doctype/address/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,12 @@ def get_address_list(doctype, txt, filters, limit_start, limit_page_length=20, o
from frappe.www.list import get_list

user = frappe.session.user
ignore_permissions = True

if not filters:
filters = []
filters.append(("Address", "owner", "=", user))

return get_list(
doctype, txt, filters, limit_start, limit_page_length, ignore_permissions=ignore_permissions
)
return get_list(doctype, txt, filters, limit_start, limit_page_length)


def has_website_permission(doc, ptype, user, verbose=False):
Expand Down

0 comments on commit 18b6ce2

Please sign in to comment.