Merge branch 'master' of github.com:webnotes/erpnext into dev
Conflicts: erpnext/patches/patch_list.py
This commit is contained in:
commit
3a281ae6c3
@ -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""")
|
@ -500,4 +500,9 @@ patch_list = [
|
|||||||
'patch_file': 'auth_table',
|
'patch_file': 'auth_table',
|
||||||
'description': 'create new __Auth table'
|
'description': 'create new __Auth table'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.july_2012',
|
||||||
|
'patch_file': 'remove_event_role_owner_match',
|
||||||
|
'description': "Remove Owner match from Event DocType's Permissions"
|
||||||
|
},
|
||||||
]
|
]
|
@ -1773,7 +1773,7 @@ if(this.frm_head)this.frm_head.refresh();if(wn.ui.toolbar.recent)
|
|||||||
wn.ui.toolbar.recent.add(this.doctype,this.docname,1);}
|
wn.ui.toolbar.recent.add(this.doctype,this.docname,1);}
|
||||||
_f.Frm.prototype.check_doc_perm=function(){var dt=this.parent_doctype?this.parent_doctype:this.doctype;var dn=this.parent_docname?this.parent_docname:this.docname;this.perm=get_perm(dt,dn);this.orig_perm=get_perm(dt,dn,1);if(!this.perm[0][READ]){if(user=='Guest'){if(_f.temp_access[dt]&&_f.temp_access[dt][dn]){this.perm=[[1,0,0]]
|
_f.Frm.prototype.check_doc_perm=function(){var dt=this.parent_doctype?this.parent_doctype:this.doctype;var dn=this.parent_docname?this.parent_docname:this.docname;this.perm=get_perm(dt,dn);this.orig_perm=get_perm(dt,dn,1);if(!this.perm[0][READ]){if(user=='Guest'){if(_f.temp_access[dt]&&_f.temp_access[dt][dn]){this.perm=[[1,0,0]]
|
||||||
return 1;}}
|
return 1;}}
|
||||||
window.back();return 0;}
|
window.history.back();return 0;}
|
||||||
return 1}
|
return 1}
|
||||||
_f.Frm.prototype.refresh=function(docname){if(docname){if(this.docname!=docname&&(!this.meta.in_dialog||this.in_form)&&!this.meta.istable)
|
_f.Frm.prototype.refresh=function(docname){if(docname){if(this.docname!=docname&&(!this.meta.in_dialog||this.in_form)&&!this.meta.istable)
|
||||||
scroll(0,0);this.docname=docname;}
|
scroll(0,0);this.docname=docname;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user