From e37bf2215a8dcc0d6b0f31134d28798b34ccad2d Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 6 Jun 2012 12:41:34 +0530 Subject: [PATCH] do not load communication if no permission --- 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 afa853ddbf..7928d964bc 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 && r['403']) { + if(r) { return; } var RecordListView = wn.views.RecordListView.extend({