diff --git a/Childrens-Social-Care-CPD/Views/Shared/_Feedback.cshtml b/Childrens-Social-Care-CPD/Views/Shared/_Feedback.cshtml index 4d05d2f9..6e1388c2 100644 --- a/Childrens-Social-Care-CPD/Views/Shared/_Feedback.cshtml +++ b/Childrens-Social-Care-CPD/Views/Shared/_Feedback.cshtml @@ -1,8 +1,10 @@ @using Childrens_Social_Care_CPD.Configuration.Features @inject IFeaturesConfig featureConfig +@inject ICookieHelper cookieHelper @if (!featureConfig.IsEnabled(Features.FeedbackControl)) return; +@if (cookieHelper.GetRequestAnalyticsCookieState(Context) != AnalyticsConsentState.Accepted) return; @{ var contextModel = (ContextModel)ViewBag.ContextModel;