Skip to content

Commit

Permalink
~ Transcribing consent given during subscription only applies to Akee…
Browse files Browse the repository at this point in the history
…ba Subscriptions 5 and 6

Part II -- Akeeba Subs 7 should also be excluded from this feature.
  • Loading branch information
Nicholas K. Dionysopoulos committed Jul 1, 2019
1 parent 58fee30 commit b160e68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/system/datacompliance/datacompliance.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit b160e68

Please sign in to comment.