Skip to content

Commit

Permalink
Merge pull request #5 from ugrupp/master
Browse files Browse the repository at this point in the history
Fixed requires-consent logic
  • Loading branch information
balazscsaba2006 authored Jan 17, 2020
2 parents a23b59e + 36f950c commit ec79aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/CookiebotService.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CookiebotService extends Component
*/
public function requiresConsent(): bool
{
return $this->isCookieSet() && '-1' !== $_COOKIE[self::COOKIE_NAME];
return !$this->isCookieSet() || ($this->isCookieSet() && '-1' !== $_COOKIE[self::COOKIE_NAME]);
}

/**
Expand Down

0 comments on commit ec79aac

Please sign in to comment.