diff --git a/user/tabs.php b/user/tabs.php index 19cb78a53ee..d2a90a7b82a 100644 --- a/user/tabs.php +++ b/user/tabs.php @@ -137,7 +137,7 @@ //print_object($user); // add in logic to check course read report - if (has_capability('moodle/user:viewactivitiesreport', $personalcontext) || ($course->showreports and $USER->id == $user->id)) { + if (has_capability('moodle/user:viewuseractivitiesreport', $personalcontext) || ($course->showreports and $USER->id == $user->id)) { $toprow[] = new tabobject('reports', $CFG->wwwroot.'/course/user.php?id='.$course->id. '&user='.$user->id.'&mode=outline', get_string('activityreports'));