feat: add sms_gateway_enabled flag to bootinfo
This enables ERPNext to not show a "Send SMS" button when it certainly will not work.
This commit is contained in:
parent
c01ea099d4
commit
e3a65dc1e3
1 changed files with 1 additions and 0 deletions
|
|
@ -100,6 +100,7 @@ def get_bootinfo():
|
|||
bootinfo.update(get_email_accounts(user=frappe.session.user))
|
||||
bootinfo.energy_points_enabled = is_energy_point_enabled()
|
||||
bootinfo.website_tracking_enabled = is_tracking_enabled()
|
||||
bootinfo.sms_gateway_enabled = bool(frappe.db.get_single_value("SMS Settings", "sms_gateway_url"))
|
||||
bootinfo.points = get_energy_points(frappe.session.user)
|
||||
bootinfo.frequently_visited_links = frequently_visited_links()
|
||||
bootinfo.link_preview_doctypes = get_link_preview_doctypes()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue