mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-18 02:55:20 +00:00
fix: check for submit permissions instead of write permissions when updating status (backport #53697) (#53703)
Co-authored-by: diptanilsaha <diptanil@frappe.io> fix: check for `submit` permissions instead of `write` permissions when updating status (#53697)
This commit is contained in:
@@ -1581,7 +1581,7 @@ def make_purchase_return(source_name, target_doc=None):
|
||||
|
||||
@frappe.whitelist()
|
||||
def update_purchase_receipt_status(docname, status):
|
||||
pr = frappe.get_lazy_doc("Purchase Receipt", docname, check_permission="write")
|
||||
pr = frappe.get_lazy_doc("Purchase Receipt", docname, check_permission="submit")
|
||||
pr.update_status(status)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user