allow deletion of profile

This commit is contained in:
Anand Doshi 2012-09-28 16:45:05 +05:30
parent 440c1eb465
commit 5b553b2709
2 changed files with 8 additions and 0 deletions

View File

@ -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
},
]

View File

@ -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""")