Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Mar 25, 2022
1 parent c36ebf9 commit 1db4c14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LegalModuleInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function upgrade(string $oldVersion): bool
// @todo write upgrade for permissions?
$this->setVar(LegalConstant::MODVAR_EUCOOKIE, 0);
// no break
case '2.1.0': //current version
case '2.1.0': // current version
// nothing
case '2.1.1':
// nothing
Expand Down
4 changes: 2 additions & 2 deletions Listener/UsersUiListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ public function acceptPolicies(UserPreLoginSuccessEvent $event): void
$termsOfUseAccepted = $termsOfUseActive ? !$attributeIsEmpty(LegalConstant::ATTRIBUTE_TERMSOFUSE_ACCEPTED) : true;
$privacyPolicyAccepted = $privacyPolicyActive ? !$attributeIsEmpty(LegalConstant::ATTRIBUTE_PRIVACYPOLICY_ACCEPTED) : true;
$agePolicyAccepted = $agePolicyActive ? !$attributeIsEmpty(LegalConstant::ATTRIBUTE_AGEPOLICY_CONFIRMED) : true;
$tradeConditionsAccepted = true; //$tradeConditionsActive ? !$attributeIsEmpty(LegalConstant::ATTRIBUTE_TRADECONDITIONS_ACCEPTED) : true;
$cancellationRightPolicyAccepted = true; //$cancellationRightPolicyActive ? !$attributeIsEmpty(LegalConstant::ATTRIBUTE_CANCELLATIONRIGHTPOLICY_ACCEPTED) : true;
$tradeConditionsAccepted = true; // $tradeConditionsActive ? !$attributeIsEmpty(LegalConstant::ATTRIBUTE_TRADECONDITIONS_ACCEPTED) : true;
$cancellationRightPolicyAccepted = true; // $cancellationRightPolicyActive ? !$attributeIsEmpty(LegalConstant::ATTRIBUTE_CANCELLATIONRIGHTPOLICY_ACCEPTED) : true;

if ($termsOfUseAccepted && $privacyPolicyAccepted && $agePolicyAccepted && $tradeConditionsAccepted && $cancellationRightPolicyAccepted) {
return;
Expand Down

0 comments on commit 1db4c14

Please sign in to comment.