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

This commit is contained in:
Michael Hawkins
2018-08-20 16:28:03 +08:00
committed by Jun Pataleta
parent 83dc898b00
commit cb8a553af9
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);