[fix] On the module page reports not showing of the doctype, which had option User Cannot Search

This commit is contained in:
Rohit Waghchaure 2017-04-29 10:49:23 +05:30 committed by Nabin Hait
parent 25b032518d
commit f6f96a69cf

View file

@ -133,9 +133,9 @@ frappe.pages['modules'].on_page_load = function(wrapper) {
return encodeURIComponent(key) + "=" + encodeURIComponent(value) }).join('&')
}
if(item.type==="page" || item.type==="help" ||
(item.doctype && frappe.model.can_read(item.doctype))) {
item.shown = true;
if(item.type==="page" || item.type==="help" || item.type==="report" ||
(item.doctype && frappe.model.can_read(item.doctype))) {
item.shown = true;
}
});
});