From 0362cb1222484b1853813c2681d24e7a1e9abb52 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Wed, 30 Aug 2017 12:04:48 +0530 Subject: [PATCH] revert --- foundation/erpnext_foundation/doctype/bounty/bounty.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/foundation/erpnext_foundation/doctype/bounty/bounty.py b/foundation/erpnext_foundation/doctype/bounty/bounty.py index a7bb06c3..17055b13 100644 --- a/foundation/erpnext_foundation/doctype/bounty/bounty.py +++ b/foundation/erpnext_foundation/doctype/bounty/bounty.py @@ -25,9 +25,7 @@ class Bounty(WebsiteGenerator): bounty_left = self.goal * 0.1 # edit permission - can_edit = False - if 'System Manager' in frappe.get_roles() or self.owner == frappe.session.user: - can_edit = True + can_edit = self.owner == frappe.session.user context.no_cache = True context.no_breadcrumbs = False