diff --git a/frappe/boot.py b/frappe/boot.py index 4a04e898be..b21ec6afd6 100644 --- a/frappe/boot.py +++ b/frappe/boot.py @@ -139,7 +139,7 @@ def load_conf_settings(bootinfo): from frappe.core.api.file import get_max_file_size bootinfo.max_file_size = get_max_file_size() - for key in ("developer_mode", "socketio_port", "file_watcher_port"): + for key in ("developer_mode", "socketio_port", "file_watcher_port", "fc_communication_secret"): if key in frappe.conf: bootinfo[key] = frappe.conf.get(key) diff --git a/frappe/hooks.py b/frappe/hooks.py index 6e4423e663..fa709fdb96 100644 --- a/frappe/hooks.py +++ b/frappe/hooks.py @@ -482,6 +482,13 @@ standard_navbar_items = [ "action": "frappe.quick_edit('Workspace Settings')", "is_standard": 1, }, + { + "item_label": "Manage Billing", + "item_type": "Route", + "route": "/billing", + "is_standard": 1, + "condition": "frappe.boot.fc_communication_secret && frappe.boot.setup_complete && !frappe.is_mobile() && frappe.user.has_role('System Manager')", + }, { "item_label": "Session Defaults", "item_type": "Action",