Merge pull request #8790 from ruchamahabal/fix_report_builder

fix(Report): do not validate Script Manager role for Report Builder type
This commit is contained in:
mergify[bot] 2019-11-21 11:48:05 +00:00 committed by GitHub
commit 0058fd4e51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ class Report(Document):
if self.is_standard == "No":
# allow only script manager to edit scripts
if frappe.session.user!="Administrator":
if self.report_type != 'Report Builder':
frappe.only_for('Script Manager', True)
if frappe.db.get_value("Report", self.name, "is_standard") == "Yes":