From b160e6834097705ca5bcc360b5c0b5f2c8cf27c7 Mon Sep 17 00:00:00 2001 From: "Nicholas K. Dionysopoulos" Date: Mon, 1 Jul 2019 17:58:36 +0300 Subject: [PATCH] ~ Transcribing consent given during subscription only applies to Akeeba Subscriptions 5 and 6 Part II -- Akeeba Subs 7 should also be excluded from this feature. --- plugins/system/datacompliance/datacompliance.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/system/datacompliance/datacompliance.php b/plugins/system/datacompliance/datacompliance.php index d0534b2..994a4d7 100644 --- a/plugins/system/datacompliance/datacompliance.php +++ b/plugins/system/datacompliance/datacompliance.php @@ -403,6 +403,12 @@ private function hasAkeebasubsConsent(User $user): bool // Try to fetch the Akeeba Subs user record $asContainer = Container::getInstance('com_akeebasubs'); + // Akeeba Subs 7 no longer has a Users model and does not store consent in its own table. + if (!class_exists('Akeeba\\Subscriptions\\Site\\Model\\Users')) + { + return false; + } + /** * Akeeba Subscriptions 5 and 6. Use the User model. */