From e97c9f7565b9dccd084501851ac7c94050932aea Mon Sep 17 00:00:00 2001 From: Saurabh Date: Mon, 11 Sep 2017 11:24:22 +0530 Subject: [PATCH] [minor][fix] ignore permissions while updating a doc after payment completion --- .../erpnext_foundation/doctype/bounty_backer/bounty_backer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundation/erpnext_foundation/doctype/bounty_backer/bounty_backer.py b/foundation/erpnext_foundation/doctype/bounty_backer/bounty_backer.py index 49e80ade..df1a28c4 100644 --- a/foundation/erpnext_foundation/doctype/bounty_backer/bounty_backer.py +++ b/foundation/erpnext_foundation/doctype/bounty_backer/bounty_backer.py @@ -20,7 +20,7 @@ class BountyBacker(Document): self.db_set('paid', 1) # to trigger form events of Bounty doctype doc = frappe.get_doc('Bounty', self.bounty_name) - doc.save() + doc.save(ignore_permissions=True) return '/' + doc.route return '/bounties'