Skip to content

Commit

Permalink
feat: Add setting DISABLE_ORDER_HISTORY_TAB
Browse files Browse the repository at this point in the history
(cherry picked from commit fa06474)
  • Loading branch information
andrey-canon committed Nov 19, 2024
1 parent 5071f28 commit a863c3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openedx/core/djangoapps/user_api/accounts/settings_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,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()
),
'enable_account_deletion': configuration_helpers.get_value(
'ENABLE_ACCOUNT_DELETION', settings.FEATURES.get('ENABLE_ACCOUNT_DELETION', False)
),
Expand Down

0 comments on commit a863c3c

Please sign in to comment.