MDL-63867 tool_dataprivacy: Fix context expired/unprotected user check
authorMichael Hawkins <michaelh@moodle.com>
Wed, 7 Nov 2018 05:53:52 +0000 (13:53 +0800)
committerMichael Hawkins <michaelh@moodle.com>
Fri, 9 Nov 2018 06:19:31 +0000 (14:19 +0800)
commit0646c8514b1278ba02e7bb36fe33d4d14b1f327d
treeb70b3924f620a222c344d96ad11d01980be6371f
parentbebef891741c12ccd71aadae1e689a776fb15d03
MDL-63867 tool_dataprivacy: Fix context expired/unprotected user check

It now checks the system context has been defined, since that is
required for data privacy to be set up correctly, and the check
to be valid. This also fixes an error being thrown when checking
pending delete requests in cron.
admin/tool/dataprivacy/classes/expired_contexts_manager.php