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 c3e66c0)
  • Loading branch information
andrey-canon authored and johanseto committed Jan 23, 2024
1 parent bbabb05 commit fa06474
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 @@ -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)
Expand Down

0 comments on commit fa06474

Please sign in to comment.