Merge branch 'w02_MDL-37175_m25_paypalmanage' of git://github.com/skodak/moodle

This commit is contained in:
Dan Poltawski 2013-01-16 10:54:55 +08:00
commit cb598688a8

View File

@ -281,6 +281,10 @@ class enrol_paypal_plugin extends enrol_plugin {
$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;
}