Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-29011 do not require manual enrol cap on the enrolled users page

  • Loading branch information...
commit 5eb8c77850fbd93f413f111904034a6144c80cbe 1 parent 24654d9
@skodak skodak authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 enrol/manual/lib.php
View
6 enrol/manual/lib.php
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.