new permission manager

This commit is contained in:
Rushabh Mehta
2013-01-01 19:51:35 +05:30
parent 5f183982cd
commit 78a0c20305
7 changed files with 46 additions and 84 deletions

View File

@@ -0,0 +1,7 @@
import webnotes
def execute():
webnotes.conn.sql("""update tabDocPerm set permlevel=0 where permlevel is null""")
webnotes.conn.sql("""update tabDocPerm set `create`=0, `submit`=0, `cancel`=0,
`amend`=0, `match`='' where permlevel>0""")
webnotes.delete_doc("Permission Control")