Merge pull request #48 from saurabh6790/leave_chapter_fix

[minor][fix] ignore permissions while updating a doc after payment completion
This commit is contained in:
Saurabh
2017-09-11 11:35:23 +05:30
committed by GitHub

View File

@@ -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'