[fix] On the module page reports not showing of the doctype, which had option User Cannot Search
This commit is contained in:
parent
25b032518d
commit
f6f96a69cf
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue