mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
removed unwanted permission
This commit is contained in:
@@ -10,5 +10,4 @@ def execute():
|
|||||||
if not doctype.doclist.get({"doctype": "DocField", "permlevel": pl}):
|
if not doctype.doclist.get({"doctype": "DocField", "permlevel": pl}):
|
||||||
if doctype.doclist.get({"doctype":"DocPerm", "permlevel":pl}):
|
if doctype.doclist.get({"doctype":"DocPerm", "permlevel":pl}):
|
||||||
webnotes.conn.sql("""delete from `tabDocPerm`
|
webnotes.conn.sql("""delete from `tabDocPerm`
|
||||||
where parent = %s and permlevel = %s""", (dt[0], pl))
|
where parent = %s and permlevel = %s""", (dt[0], pl))
|
||||||
print doctype.doc.name
|
|
||||||
Reference in New Issue
Block a user