fix: advertise insights to system manager only

This commit is contained in:
barredterra 2024-03-27 19:55:38 +01:00
parent e5b1747f75
commit 57bcfe548e

View file

@ -39,7 +39,9 @@ frappe.views.ListSidebar = class ListSidebar {
});
}
this.add_insights_banner();
if (frappe.user.has_role("System Manager")) {
this.add_insights_banner();
}
}
setup_views() {