From 08c4f64d5fa76d7ec13d703a7ef93cdde6653c52 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 6 Jun 2012 13:19:38 +0530 Subject: [PATCH] fix in communication listing --- erpnext/support/doctype/communication/communication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/support/doctype/communication/communication.js b/erpnext/support/doctype/communication/communication.js index 7928d964bcd..87e0aad819f 100644 --- a/erpnext/support/doctype/communication/communication.js +++ b/erpnext/support/doctype/communication/communication.js @@ -71,7 +71,7 @@ cur_frm.cscript.render_communication_list = function(doc, dt, dn) { // Render List cur_frm.cscript.render_list = function(doc, doctype, wrapper, ListView, make_new_doc) { wn.model.with_doctype(doctype, function(r) { - if(r) { + if((r && r['403']) || wn.boot.profile.all_read.indexOf(doctype)===-1) { return; } var RecordListView = wn.views.RecordListView.extend({