mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +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")
|
||||
@@ -574,4 +574,8 @@ patch_list = [
|
||||
'patch_module': 'patches.december_2012',
|
||||
'patch_file': 'update_print_width',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.january_2013',
|
||||
'patch_file': 'remove_bad_permissions',
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user