mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +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
|
// pages
|
||||||
$(wrapper).find('[data-role]').each(function() {
|
$(wrapper).find('[data-role]').each(function() {
|
||||||
// can define multiple roles
|
// 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(); });
|
return role.trim(); });
|
||||||
if(!has_common(user_roles, ["System Manager"].concat(data_roles))) {
|
if(!has_common(user_roles, ["System Manager"].concat(data_roles))) {
|
||||||
var html = $(this).html();
|
var html = $(this).html();
|
||||||
|
|||||||
Reference in New Issue
Block a user