Merge pull request #25693 from barredterra/less-ads
fix: advertise insights to system manager only
This commit is contained in:
commit
5fce9a471e
1 changed files with 3 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue