fix in communication listing

This commit is contained in:
Anand Doshi 2012-06-06 13:19:38 +05:30
parent e37bf2215a
commit 08c4f64d5f

View File

@ -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({