Skip to content

Commit

Permalink
MDL-29011 do not require manual enrol cap on the enrolled users page
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Aug 21, 2011
1 parent 24654d9 commit 5eb8c77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion enrol/manual/lib.php
Expand Up @@ -198,7 +198,11 @@ public function get_manual_enrol_button(course_enrolment_manager $manager) {
return false;
}

$button = new enrol_user_button($this->get_manual_enrol_link($instance), get_string('enrolusers', 'enrol_manual'), 'get');
if (!$manuallink = $this->get_manual_enrol_link($instance)) {
return false;
}

$button = new enrol_user_button($manuallink, get_string('enrolusers', 'enrol_manual'), 'get');
$button->class .= ' enrol_manual_plugin';

$startdate = $manager->get_course()->startdate;
Expand Down

0 comments on commit 5eb8c77

Please sign in to comment.