brotherton-erpnext/patches/september_2012/profile_delete_permission.py

5 lines
218 B
Python
Raw Normal View History

2012-10-01 11:35:49 +05:30
from __future__ import unicode_literals
2012-09-28 16:45:05 +05:30
import webnotes
def execute():
webnotes.conn.sql("""update `tabDocPerm` set cancel=1
where parent='Profile' and role in ('System Manager', 'Administrator') and permlevel=0""")