Skip to content

Commit

Permalink
fix: pass check permission in render_address
Browse files Browse the repository at this point in the history
(cherry picked from commit 45299fe)
  • Loading branch information
vishakhdesai authored and mergify[bot] committed Nov 18, 2023
1 parent c7c751e commit 1ccd5e4
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 1ccd5e4

Please sign in to comment.