Merge pull request #38557 from gajjug004/fix/onboarding-shown-when-disabled

This commit is contained in:
Hussain Nagaria 2026-04-13 17:00:36 +05:30 committed by GitHub
commit 876bf3a6b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -682,6 +682,9 @@ def get_onboarding_data(module: str):
Return:
dict: onboarding data
"""
if not frappe.get_system_settings("enable_onboarding"):
return []
onboardings = []
onboarding_doc = frappe.get_doc("Module Onboarding", module)
if onboarding_doc.is_complete: