Skip to content

Commit

Permalink
MDL-69204 tool_dataprivacy: summary link only on current user profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Jul 27, 2020
1 parent d8b0be3 commit e64f37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/tool/dataprivacy/lib.php
Expand Up @@ -95,7 +95,7 @@ function tool_dataprivacy_myprofile_navigation(tree $tree, $user, $iscurrentuser
$showsummary = true;
}

if ($showsummary) {
if ($showsummary && $iscurrentuser) {
$summaryurl = new moodle_url('/admin/tool/dataprivacy/summary.php');
$summarynode = new core_user\output\myprofile\node('privacyandpolicies', 'retentionsummary',
get_string('dataretentionsummary', 'tool_dataprivacy'), null, $summaryurl);
Expand Down

0 comments on commit e64f37c

Please sign in to comment.