mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
Merge branch 'edge' of github.com:webnotes/erpnext into edge
Conflicts: patches/patch_list.py
This commit is contained in:
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")
|
||||
@@ -578,4 +578,8 @@ patch_list = [
|
||||
'patch_module': 'patches.january_2013',
|
||||
'patch_file': 'deprecate_stock_search_criteria',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.january_2013',
|
||||
'patch_file': 'remove_bad_permissions',
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user