Skip to content

Commit

Permalink
MDL-11308, wrong capability check in print_user() function
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Oct 5, 2007
1 parent bb0aa83 commit 34a2acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3496,7 +3496,7 @@ function print_user($user, $course, $messageselect=false, $return=false) {
$output .= '<a href="'.$CFG->wwwroot.'/blog/index.php?userid='.$user->id.'">'.get_string('blogs','blog').'</a><br />';
}

if (has_capability('moodle/site:viewreports', $context)) {
if (has_capability('moodle/user:viewuseractivitiesreport', $context)) {
$timemidnight = usergetmidnight(time());
$output .= '<a href="'. $CFG->wwwroot .'/course/user.php?id='. $course->id .'&amp;user='. $user->id .'">'. $string->activity .'</a><br />';
}
Expand Down

0 comments on commit 34a2acf

Please sign in to comment.