allow deletion of profile
This commit is contained in:
parent
440c1eb465
commit
5b553b2709
@ -601,6 +601,10 @@ patch_list = [
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.september_2012',
|
||||
<<<<<<< Updated upstream
|
||||
'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""")
|
Loading…
x
Reference in New Issue
Block a user