Permalink
Browse files

NOMDL edit icon at the course participants page now links to the enro…

…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...
1 parent 4033062 commit d9e290863611a8247cee2f656c1dea8f8e966524 @mudrd8mz mudrd8mz committed Sep 22, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 user/index.php
View
@@ -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 = '';
}

0 comments on commit d9e2908

Please sign in to comment.