Merge branch 'MDL-69204' of https://github.com/paulholden/moodle
authorAdrian Greeve <abgreeve@gmail.com>
Tue, 11 Aug 2020 00:42:02 +0000 (08:42 +0800)
committerAdrian Greeve <abgreeve@gmail.com>
Tue, 11 Aug 2020 00:42:02 +0000 (08:42 +0800)
admin/tool/dataprivacy/lib.php

index c069301..5b5f28a 100644 (file)
@@ -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);