Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
e97f8bbb5a
@ -71,7 +71,7 @@ cur_frm.cscript.render_communication_list = function(doc, dt, dn) {
|
|||||||
// Render List
|
// Render List
|
||||||
cur_frm.cscript.render_list = function(doc, doctype, wrapper, ListView, make_new_doc) {
|
cur_frm.cscript.render_list = function(doc, doctype, wrapper, ListView, make_new_doc) {
|
||||||
wn.model.with_doctype(doctype, function(r) {
|
wn.model.with_doctype(doctype, function(r) {
|
||||||
if(r && r['403']) {
|
if((r && r['403']) || wn.boot.profile.all_read.indexOf(doctype)===-1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var RecordListView = wn.views.RecordListView.extend({
|
var RecordListView = wn.views.RecordListView.extend({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user