Skip to content

Commit

Permalink
NOMDL edit icon at the course participants page now links to the enro…
Browse files Browse the repository at this point in the history
…lments page instead of role assignment page

Also note the controlling capability has changed to the one used at the
linked page.
  • Loading branch information
mudrd8mz committed Sep 22, 2010
1 parent 4033062 commit d9e2908
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions user/index.php
Expand Up @@ -489,9 +489,9 @@
}
echo $OUTPUT->heading($heading, 3);
} else {
if ($course->id != SITEID && has_capability('moodle/role:assign', $context)) {
$editlink = ' <a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.$context->id.'">';
$editlink .= '<img src="'.$OUTPUT->pix_url('i/edit') . '" class="icon" alt="" /></a>';
if ($course->id != SITEID && has_capability('moodle/course:enrolreview', $context)) {
$editlink = $OUTPUT->action_icon(new moodle_url('/enrol/users.php', array('id' => $course->id)),
new pix_icon('i/edit', get_string('edit')));
} else {
$editlink = '';
}
Expand Down

0 comments on commit d9e2908

Please sign in to comment.