From 618d31066390debea05bd99d2ca283cb3a7ae40f Mon Sep 17 00:00:00 2001 From: Adrian Greeve Date: Tue, 4 Feb 2020 08:31:46 +0800 Subject: [PATCH] MDL-67585 core_course: Update to provider to add favourites info. This adds information to the privacy report about the user being able to favourite activities in the activity chooser. --- course/classes/privacy/provider.php | 1 + lang/en/course.php | 1 + 2 files changed, 2 insertions(+) diff --git a/course/classes/privacy/provider.php b/course/classes/privacy/provider.php index edeb50cb1e4..fab27bcb6ea 100644 --- a/course/classes/privacy/provider.php +++ b/course/classes/privacy/provider.php @@ -56,6 +56,7 @@ class provider implements public static function get_metadata(collection $collection) : collection { $collection->add_subsystem_link('core_completion', [], 'privacy:metadata:completionsummary'); $collection->add_subsystem_link('core_favourites', [], 'privacy:metadata:favouritessummary'); + $collection->add_subsystem_link('core_favourites', [], 'privacy:metadata:activityfavouritessummary'); $collection->add_user_preference('coursecat_management_perpage', 'privacy:perpage'); return $collection; } diff --git a/lang/en/course.php b/lang/en/course.php index ae9eefb5622..a4d853164ce 100644 --- a/lang/en/course.php +++ b/lang/en/course.php @@ -62,6 +62,7 @@ $string['noteachinginfomessage'] = 'Hi {$a->userfirstname}, $string['privacy:perpage'] = 'The number of courses to show per page.'; $string['privacy:completionpath'] = 'Course completion'; $string['privacy:favouritespath'] = 'Course starred information'; +$string['privacy:metadata:activityfavouritessummary'] = 'The course system contains information about which items from the activity chooser have been starred by the user.'; $string['privacy:metadata:completionsummary'] = 'The course contains completion information about the user.'; $string['privacy:metadata:favouritessummary'] = 'The course contains information relating to the course being starred by the user.'; $string['studentsatriskincourse'] = 'Students at risk in {$a} course';