feat: enable onboarding after install

This commit is contained in:
Shivam Mishra 2020-05-01 19:32:22 +05:30
parent a50f8c3475
commit fc2414a096

View file

@ -232,6 +232,9 @@ def disable_future_access():
frappe.db.set_value('System Settings', 'System Settings', 'setup_complete', 1)
frappe.db.set_value('System Settings', 'System Settings', 'is_first_startup', 1)
# Enable onboarding after install
frappe.db.set_value('System Settings', 'System Settings', 'enable_onboarding', 1)
if not frappe.flags.in_test:
# remove all roles and add 'Administrator' to prevent future access
page = frappe.get_doc('Page', 'setup-wizard')