brotherton-erpnext/patches/november_2012/report_permissions.py
2013-11-20 13:00:28 +05:30

9 lines
312 B
Python

# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import webnotes
def execute():
webnotes.conn.sql("""update tabDocPerm set `write`=1 where
parent='Report'
and role in ('Administrator', 'Report Manager', 'System Manager')""")