Skip to content

Commit

Permalink
Merge pull request #489 from DFE-Digital/mattb/SWCD-2236-feedback-wit…
Browse files Browse the repository at this point in the history
…h-cookies

Ensure feedback component suppressed when site cookies rejected
  • Loading branch information
mattb-hippo authored Aug 2, 2024
2 parents 8c4d8ad + 94ec92e commit 23c0ce4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Childrens-Social-Care-CPD/Views/Shared/_Feedback.cshtml
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 23c0ce4

Please sign in to comment.