Skip to content

Commit

Permalink
Merge pull request #2541 from resilient-tech/mergify/bp/version-15-ho…
Browse files Browse the repository at this point in the history
…tfix/pr-2528

fix: better permission check for viewing pending vouchers (backport #2528)
  • Loading branch information
mergify[bot] authored Aug 22, 2024
2 parents 9443952 + 5155668 commit d3b6f8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def execute(filters=None):

@frappe.whitelist()
def get_pending_voucher_types(company=None):
frappe.has_permission("GST Settings", "write", throw=True)
frappe.has_permission("GST Settings", "read", throw=True)

company_accounts = ""
if company:
Expand Down

0 comments on commit d3b6f8c

Please sign in to comment.