MDL-37175 enable PayPal enrolment editing

This commit is contained in:
Petr Škoda
2013-01-12 16:35:19 +01:00
parent 0aaea0d241
commit b3ef2e519e
+4
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;
}
}