Skip to content

Commit

Permalink
Merge pull request #38169 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-38167

fix: pass check permission in `render_address` (backport #38167)
  • Loading branch information
sagarvora authored Nov 18, 2023
2 parents b89a4a7 + a420e13 commit d89a9a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion erpnext/accounts/party.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ def set_address_details(
if shipping_address:
party_details.update(
shipping_address=shipping_address,
shipping_address_display=render_address(shipping_address),
shipping_address_display=render_address(
shipping_address, check_permissions=not ignore_permissions
),
**get_fetch_values(doctype, "shipping_address", shipping_address)
)

Expand Down

0 comments on commit d89a9a5

Please sign in to comment.