Skip to content

Commit

Permalink
MDL-37175 enable PayPal enrolment editing
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jan 12, 2013
1 parent 0aaea0d commit b3ef2e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions enrol/paypal/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ public function get_user_enrolment_actions(course_enrolment_manager $manager, $u
$url = new moodle_url('/enrol/unenroluser.php', $params);
$actions[] = new user_enrolment_action(new pix_icon('t/delete', ''), get_string('unenrol', 'enrol'), $url, array('class'=>'unenrollink', 'rel'=>$ue->id));
}
if ($this->allow_manage($instance) && has_capability("enrol/paypal:manage", $context)) {
$url = new moodle_url('/enrol/editenrolment.php', $params);
$actions[] = new user_enrolment_action(new pix_icon('t/edit', ''), get_string('edit'), $url, array('class'=>'editenrollink', 'rel'=>$ue->id));
}
return $actions;
}
}

0 comments on commit b3ef2e5

Please sign in to comment.