MDL-62660 tool_dataprivacy: Add scheduled task to expire data requests

This commit is contained in:
Michael Hawkins
2018-08-20 15:31:20 +08:00
committed by Andrew Nicols
parent 693f690c18
commit 5f9a31ee79
4 changed files with 77 additions and 1 deletions
@@ -106,7 +106,7 @@ class process_data_request_task extends adhoc_task {
$filerecord->author = fullname($foruser);
// Save somewhere.
$thing = $fs->create_file_from_pathname($filerecord, $exportedcontent);
$completestatus = api::DATAREQUEST_STATUS_DOWNLOAD_READY;
} else if ($request->type == api::DATAREQUEST_TYPE_DELETE) {
// Get the collection of approved_contextlist objects needed for core_privacy data deletion.
$approvedclcollection = api::get_approved_contextlist_collection_for_request($requestpersistent);