Comment out checking of dpa consent. Comment out access to dpa consent. #418

This commit is contained in:
Korina Cordero 2020-05-25 03:33:44 +00:00
parent 761476134c
commit f21753bd07
2 changed files with 9 additions and 2 deletions

View file

@ -172,10 +172,13 @@ class ResqCustomerHandler implements CustomerHandlerInterface
$em = $this->em; $em = $this->em;
$row = new Customer(); $row = new Customer();
// NOTE: commenting the dpa changes for now
// check if dpa consent is unticked // check if dpa consent is unticked
/*
$is_dpa_checked = $req->request->get('flag_dpa_consent'); $is_dpa_checked = $req->request->get('flag_dpa_consent');
if (!$is_dpa_checked) if (!$is_dpa_checked)
$error_array['flag_dpa_consent'] = 'DPA consent should be checked.'; $error_array['flag_dpa_consent'] = 'DPA consent should be checked.';
*/
// check if email marketing promo is checked // check if email marketing promo is checked
$is_email_promo_checked = $req->request->get('flag_promo_email'); $is_email_promo_checked = $req->request->get('flag_promo_email');
@ -339,10 +342,13 @@ class ResqCustomerHandler implements CustomerHandlerInterface
$nerror_array = []; $nerror_array = [];
$verror_array = []; $verror_array = [];
// NOTE: commenting out the dpa changes for now
// check if dpa consent is unticked // check if dpa consent is unticked
/*
$is_dpa_checked = $req->request->get('flag_dpa_consent'); $is_dpa_checked = $req->request->get('flag_dpa_consent');
if (!$is_dpa_checked) if (!$is_dpa_checked)
$error_array['flag_dpa_consent'] = 'DPA consent should be checked.'; $error_array['flag_dpa_consent'] = 'DPA consent should be checked.';
*/
// check if email marketing promo is checked // check if email marketing promo is checked
$is_email_promo_checked = $req->request->get('flag_promo_email'); $is_email_promo_checked = $req->request->get('flag_promo_email');

View file

@ -123,11 +123,12 @@
</div> </div>
</div> </div>
<div class="col-lg-4"> <div class="col-lg-4">
{% if is_granted('customer.dpa') %} <!-- commenting out the dpa access -->
{# {% if is_granted('customer.dpa') %} #}
<input type="checkbox" name="flag_dpa_consent" id="flag-dpa_consent" value="1"{{ obj.isDpaConsent ? ' checked' }} > <input type="checkbox" name="flag_dpa_consent" id="flag-dpa_consent" value="1"{{ obj.isDpaConsent ? ' checked' }} >
<label class="switch-label">With DPA Consent</label> <label class="switch-label">With DPA Consent</label>
<div class="form-control-feedback hide" data-field="flag_dpa_consent"></div> <div class="form-control-feedback hide" data-field="flag_dpa_consent"></div>
{% endif %} {# {% endif %} #}
</div> </div>
</div> </div>
<div class="form-group m-form__group row"> <div class="form-group m-form__group row">