patch to remove match condition of owner on event doctype

This commit is contained in:
Anand Doshi
2012-07-17 13:06:34 +05:30
parent 59fa430be3
commit 5d4aaaa8a7
3 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
def execute():
import webnotes
webnotes.conn.sql("""\
update `tabDocPerm` set match=NULL
where parent='Event' and role='All' and permlevel=0""")

View File

@@ -487,4 +487,9 @@ patch_list = [
'patch_file': 'cms2',
'description': 'cms2 release patches'
},
{
'patch_module': 'patches.july_2012',
'patch_file': 'remove_event_role_owner_match',
'description': "Remove Owner match from Event DocType's Permissions"
},
]