mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
allow deletion of profile
This commit is contained in:
@@ -601,6 +601,10 @@ patch_list = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'patch_module': 'patches.september_2012',
|
'patch_module': 'patches.september_2012',
|
||||||
|
<<<<<<< Updated upstream
|
||||||
'patch_file': 'deprecate_account_balance',
|
'patch_file': 'deprecate_account_balance',
|
||||||
|
=======
|
||||||
|
'patch_file': 'profile_delete_permission',
|
||||||
|
>>>>>>> Stashed changes
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
import webnotes
|
||||||
|
def execute():
|
||||||
|
webnotes.conn.sql("""update `tabDocPerm` set cancel=1
|
||||||
|
where parent='Profile' and role in ('System Manager', 'Administrator') and permlevel=0""")
|
||||||
Reference in New Issue
Block a user