bdaloukas / moodle-mod_game

moodle-mod_game
GNU General Public License v3.0
15 stars 41 forks source link

Implementing core_userlist_provider for Moodle 3.6+ #30

Open andrewmadden opened 5 years ago

andrewmadden commented 5 years ago

In Nov 2018, a new unit test was implemented requiring all plugins to implement \core_privacy\local\request\core_userlist_provider in the classes/privacy/provider.php class. The intent is to adhere to GDPR.

Two methods need to be implemented:

    /**
     * Get the list of users who have data within a context.
     *
     * @param   userlist    $userlist   The userlist containing the list of users who have data in this context/plugin combination.
     */
    public static function get_users_in_context(userlist $userlist);

    /**
     * Delete multiple users within a single context.
     *
     * @param   approved_userlist       $userlist The approved context and user information to delete information for.
     */
    public static function delete_data_for_users(approved_userlist $userlist);

Are there any plans to implement this?

Thanks