From fa06474760a153d4bddd4f277dbc5b01c7974a22 Mon Sep 17 00:00:00 2001 From: andrey-canon Date: Tue, 25 Oct 2022 12:30:21 -0500 Subject: [PATCH] feat: Add setting DISABLE_ORDER_HISTORY_TAB (cherry picked from commit c3e66c0f350a1725a1d087fd23cea0a1c649ff2b) --- openedx/core/djangoapps/user_api/accounts/settings_views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/user_api/accounts/settings_views.py b/openedx/core/djangoapps/user_api/accounts/settings_views.py index 0794a8a9497c..0ad0840acb23 100644 --- a/openedx/core/djangoapps/user_api/accounts/settings_views.py +++ b/openedx/core/djangoapps/user_api/accounts/settings_views.py @@ -159,7 +159,10 @@ def account_settings_context(request): 'show_program_listing': ProgramsApiConfig.is_enabled(), 'show_dashboard_tabs': True, 'order_history': user_orders, - 'disable_order_history_tab': should_redirect_to_order_history_microfrontend(), + 'disable_order_history_tab': ( + configuration_helpers.get_value('DISABLE_ORDER_HISTORY_TAB', False) + or should_redirect_to_order_history_microfrontend() + ), 'show_linked_accounts_tab': should_show_linked_accounts_tab(), 'enable_account_deletion': configuration_helpers.get_value( 'ENABLE_ACCOUNT_DELETION', settings.FEATURES.get('ENABLE_ACCOUNT_DELETION', False)