Show a link for echeck payments if an user has_capability('enrol/authorize:uploadcsv').

This commit is contained in:
ethem
2006-10-30 10:14:57 +00:00
parent 23febf1491
commit 0ee01f0cda
+6 -1
View File
@@ -458,7 +458,12 @@ function authorize_print_order_details($orderno)
else { // SHOW
$actions = '';
if (empty($status->actions)) {
$actions .= $strs->none;
if (($order->paymentmethod == AN_METHOD_ECHECK) && has_capability('enrol/authorize:uploadcsv', get_context_instance(CONTEXT_USER, $USER->id))) {
$actions .= '<a href="uploadcsv.php">'.get_string('uploadcsv', 'enrol_authorize').'</a>';
}
else {
$actions .= $strs->none;
}
}
else {
foreach ($status->actions as $value) {