MDL-78088 tool_dataprivacy: Enable and return additional info

This commit is contained in:
Juan Leyva
2024-02-14 15:09:31 +01:00
parent 328b48ebc5
commit 0be4d7b2bd
4 changed files with 11 additions and 1 deletions
+5
View File
@@ -388,6 +388,11 @@ class api {
$CFG->searchbanner, FORMAT_HTML, $context)[0];
}
if (empty($section) || $section === 'privacysettings') {
$settings->tool_dataprivacy_contactdataprotectionofficer = get_config('tool_dataprivacy', 'contactdataprotectionofficer');
$settings->tool_dataprivacy_showdataretentionsummary = get_config('tool_dataprivacy', 'showdataretentionsummary');
}
return $settings;
}