Skip to content

Commit

Permalink
fix: better permission check for viewing pending vouchers
Browse files Browse the repository at this point in the history
(cherry picked from commit bfc383c)
  • Loading branch information
vorasmit authored and mergify[bot] committed Aug 22, 2024
1 parent 98a696f commit da31702
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 da31702

Please sign in to comment.