Skip to content

Commit

Permalink
Add new tables to privacy api
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 authored Feb 17, 2024
1 parent b86e1d1 commit fc35ff1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ public static function get_metadata(collection $collection): collection {
'referrer' => "privacy:metadata:enrol_wallet_hold_gift:referrer",
], "privacy:metadata:enrol_wallet_hold_gift");

$collection->add_database_table('enrol_wallet_balance', [
'userid' => "privacy:metadata:enrol_wallet_balance:userid",
'refundable' => "privacy:metadata:enrol_wallet_balance:refundable",
"nonrefundable" => "privacy:metadata:enrol_wallet_balance:nonrefundable",
'cat_balance' => "privacy:metadata:enrol_wallet_balance:catbalance",
'freegift' => "privacy:metadata:enrol_wallet_balance:freegift",
], "privacy:metadata:enrol_wallet_balance",);

$collection->add_database_table('enrol_wallet_cond_discount', [
'usermodified' => "privacy:metadata:enrol_wallet_cond_discount:usermodified",
], "privacy:metadata:enrol_wallet_cond_discount");

$source = get_config('enrol_wallet', 'walletsource');
if ($source == balance::WP) {
$collection->add_external_location_link('wordpress', [
Expand Down

0 comments on commit fc35ff1

Please sign in to comment.