mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-16 18:00:47 +02:00
[minor][fix] ignore permissions while updating a doc after payment completion
This commit is contained in:
@@ -20,7 +20,7 @@ class BountyBacker(Document):
|
|||||||
self.db_set('paid', 1)
|
self.db_set('paid', 1)
|
||||||
# to trigger form events of Bounty doctype
|
# to trigger form events of Bounty doctype
|
||||||
doc = frappe.get_doc('Bounty', self.bounty_name)
|
doc = frappe.get_doc('Bounty', self.bounty_name)
|
||||||
doc.save()
|
doc.save(ignore_permissions=True)
|
||||||
return '/' + doc.route
|
return '/' + doc.route
|
||||||
return '/bounties'
|
return '/bounties'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user