mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
Merge branch 'MDL-63566-master' of git://github.com/mickhawkins/moodle
This commit is contained in:
commit
e146e1133b
@ -77,14 +77,21 @@ class metadata_registry {
|
||||
$internaldata['external'] = true;
|
||||
}
|
||||
|
||||
// Check if the interface is deprecated.
|
||||
// Additional interface checks.
|
||||
if (!$manager->is_empty_subsystem($component)) {
|
||||
$classname = $manager->get_provider_classname_for_component($component);
|
||||
if (class_exists($classname)) {
|
||||
$componentclass = new $classname();
|
||||
// Check if the interface is deprecated.
|
||||
if ($componentclass instanceof \core_privacy\local\deprecated) {
|
||||
$internaldata['deprecated'] = true;
|
||||
}
|
||||
|
||||
// Check that the userlist provider is implemented.
|
||||
if ($componentclass instanceof \core_privacy\local\request\core_user_data_provider
|
||||
&& !$componentclass instanceof \core_privacy\local\request\core_userlist_provider) {
|
||||
$internaldata['userlistnoncompliance'] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -295,6 +295,8 @@ $string['subjectscope'] = 'Subject scope';
|
||||
$string['subjectscope_help'] = 'The subject scope lists the roles which may be assigned in this context.';
|
||||
$string['summary'] = 'Registry configuration summary';
|
||||
$string['user'] = 'User';
|
||||
$string['userlistnoncompliant'] = 'Userlist provider missing';
|
||||
$string['userlistexplanation'] = 'This plugin has the base provider but should also implement the userlist provider for full support of privacy functionality.';
|
||||
$string['viewrequest'] = 'View the request';
|
||||
$string['visible'] = 'Expand all';
|
||||
$string['unexpiredrolewithretention'] = '{$a->retention} (Unexpired)';
|
||||
|
@ -64,6 +64,9 @@
|
||||
{{#deprecated}}
|
||||
<span class="badge badge-pill badge-warning">{{#str}}deprecated, tool_dataprivacy{{/str}}</span>
|
||||
{{/deprecated}}
|
||||
{{#userlistnoncompliance}}
|
||||
<span class="badge badge-pill badge-warning">{{#str}}userlistnoncompliant, tool_dataprivacy{{/str}}</span>
|
||||
{{/userlistnoncompliance}}
|
||||
</div>
|
||||
|
||||
{{#compliant}}
|
||||
|
@ -47,6 +47,8 @@
|
||||
<dd>{{#str}}externalexplanation, tool_dataprivacy{{/str}}</dd>
|
||||
<dt><span class="badge badge-pill badge-warning">{{#str}}deprecated, tool_dataprivacy{{/str}}</span></dt>
|
||||
<dd>{{#str}}deprecatedexplanation, tool_dataprivacy{{/str}}</dd>
|
||||
<dt><span class="badge badge-pill badge-warning">{{#str}}userlistnoncompliant, tool_dataprivacy{{/str}}</span></dt>
|
||||
<dd>{{#str}}userlistexplanation, tool_dataprivacy{{/str}}</dd>
|
||||
</dl>
|
||||
<hr />
|
||||
<div class="clearfix"><a class="tool_dataprivacy-expand-all pull-right" href="#" data-visibility-state='visible'>{{#str}}visible, tool_dataprivacy{{/str}}</a></div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user