mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 05:39:12 +00:00
new permission manager
This commit is contained in:
0
patches/january_2013/__init__.py
Normal file
0
patches/january_2013/__init__.py
Normal file
7
patches/january_2013/remove_bad_permissions.py
Normal file
7
patches/january_2013/remove_bad_permissions.py
Normal 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")
|
||||
Reference in New Issue
Block a user