From 36f950c5c82c70f0b1eabe7a59a689a8350b4266 Mon Sep 17 00:00:00 2001 From: Urs Grupp Date: Fri, 13 Dec 2019 14:31:08 +0100 Subject: [PATCH] Fixed requires-consent logic --- src/services/CookiebotService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/CookiebotService.php b/src/services/CookiebotService.php index bdebec5..f89ff9a 100644 --- a/src/services/CookiebotService.php +++ b/src/services/CookiebotService.php @@ -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]); } /**