mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
Merge branch 'MDL-63924-35' of git://github.com/andrewnicols/moodle into MOODLE_35_STABLE
This commit is contained in:
commit
3af336b41a
23 changed files with 155 additions and 24 deletions
|
@ -87,11 +87,17 @@ class metadata_registry {
|
|||
$internaldata['deprecated'] = true;
|
||||
}
|
||||
|
||||
// Check that the userlist provider is implemented.
|
||||
// Check that the core_userlist_provider is implemented for all user data providers.
|
||||
if ($componentclass instanceof \core_privacy\local\request\core_user_data_provider
|
||||
&& !$componentclass instanceof \core_privacy\local\request\core_userlist_provider) {
|
||||
$internaldata['userlistnoncompliance'] = true;
|
||||
}
|
||||
|
||||
// Check that any type of userlist_provider is implemented for all shared data providers.
|
||||
if ($componentclass instanceof \core_privacy\local\request\shared_data_provider
|
||||
&& !$componentclass instanceof \core_privacy\local\request\userlist_provider) {
|
||||
$internaldata['userlistnoncompliance'] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,10 @@ defined('MOODLE_INTERNAL') || die();
|
|||
* @author Adrian Greeve <adriangreeve.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
interface logstore_userlist_provider extends \core_privacy\local\request\plugin\subplugin_provider {
|
||||
interface logstore_userlist_provider extends
|
||||
\core_privacy\local\request\plugin\subplugin_provider,
|
||||
\core_privacy\local\request\shared_userlist_provider
|
||||
{
|
||||
|
||||
/**
|
||||
* Add user IDs that contain user information for the specified context.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue