Merge pull request #25693 from barredterra/less-ads

fix: advertise insights to system manager only
This commit is contained in:
Ankush Menat 2024-03-28 01:13:55 +05:30 committed by GitHub
commit 5fce9a471e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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() {