feat: Feature configuration option for disabling CookiePolicyBanner

ENABLE_COOKIE_POLICY_BANNER
This commit is contained in:
Darius Zivertas
2023-02-21 18:15:48 +02:00
parent 2feed0ced7
commit 6d7716552a

View File

@@ -43,7 +43,7 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_
% endif
<header class="global-header ${'slim' if course else ''}">
% if use_cookie_banner:
% if settings.FEATURES.get('ENABLE_COOKIE_POLICY_BANNER', use_cookie_banner):
${static.renderReact(
component="CookiePolicyBanner",
id="frontend-component-cookie-policy-banner",