From 027b6f73d6dfbc1976f29f87b106e5b4a0488ded Mon Sep 17 00:00:00 2001 From: Kevin Pham Date: Thu, 1 Jul 2021 13:59:27 +1000 Subject: [PATCH] MDL-49795 file: Add missing metadata providers for file_conversion --- files/classes/privacy/provider.php | 6 ++++++ lang/en/files.php | 2 ++ 2 files changed, 8 insertions(+) diff --git a/files/classes/privacy/provider.php b/files/classes/privacy/provider.php index efae2a97fd7..44c8694da89 100644 --- a/files/classes/privacy/provider.php +++ b/files/classes/privacy/provider.php @@ -73,6 +73,12 @@ class provider implements 'timemodified' => 'privacy:metadata:files:timemodified', ], 'privacy:metadata:files'); + // Regarding this block, we are unable to export or purge this data, as + // it would damage the file conversion data across the whole site. + $collection->add_database_table('file_conversion', [ + 'usermodified' => 'privacy:metadata:file_conversion:usermodified', + ], 'privacy:metadata:file_conversions'); + $collection->add_subsystem_link('core_userkey', [], 'privacy:metadata:core_userkey'); return $collection; diff --git a/lang/en/files.php b/lang/en/files.php index 8702327d026..d73ab1fc83b 100644 --- a/lang/en/files.php +++ b/lang/en/files.php @@ -25,6 +25,8 @@ defined('MOODLE_INTERNAL') || die(); +$string['privacy:metadata:file_conversions'] = 'A record of the file_conversions performed by a user'; +$string['privacy:metadata:file_conversion:usermodified'] = 'The user who started the file conversion.'; $string['privacy:metadata:files'] = 'A record of the files uploaded or shared by users'; $string['privacy:metadata:files:author'] = 'The author of the file\'s content'; $string['privacy:metadata:files:contenthash'] = 'A hash of the file\'s content';