From: moodler Date: Fri, 29 Feb 2008 04:30:27 +0000 (+0000) Subject: Merged link to role assign screen from 1.9 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=15234a92a10ddaf182850c3742491e6de85d346d;p=moodle.git Merged link to role assign screen from 1.9 --- diff --git a/user/index.php b/user/index.php index 01310616d0..b6df199bae 100644 --- a/user/index.php +++ b/user/index.php @@ -515,10 +515,16 @@ } print_heading($heading, 'center', 3); } else { + if ($course->id !== SITEID && has_capability('moodle/role:assign', $context)) { + $editlink = ' '; + $editlink .= ''; + } else { + $editlink = ''; + } if ($matchcount < $totalcount) { - print_heading(get_string('allparticipants').': '.$matchcount.'/'.$totalcount, '', 3); + print_heading(get_string('allparticipants').': '.$matchcount.'/'.$totalcount . $editlink, '', 3); } else { - print_heading(get_string('allparticipants').': '.$matchcount, '', 3); + print_heading(get_string('allparticipants').': '.$matchcount . $editlink, '', 3); } }