mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
allow export of analytics reports to Report Manager or System Manager
This commit is contained in:
@@ -129,7 +129,7 @@ erpnext.module_page.hide_links = function(wrapper) {
|
||||
// pages
|
||||
$(wrapper).find('[data-role]').each(function() {
|
||||
// can define multiple roles
|
||||
var data_roles = $(this).attr("data-role").split(",").map(function(role) {
|
||||
var data_roles = $.map($(this).attr("data-role").split(","), function(role) {
|
||||
return role.trim(); });
|
||||
if(!has_common(user_roles, ["System Manager"].concat(data_roles))) {
|
||||
var html = $(this).html();
|
||||
|
||||
Reference in New Issue
Block a user