From 0ee01f0cda2ea34dc7aebc76ea777e8ef0b59757 Mon Sep 17 00:00:00 2001 From: ethem Date: Mon, 30 Oct 2006 10:14:57 +0000 Subject: [PATCH] Show a link for echeck payments if an user has_capability('enrol/authorize:uploadcsv'). --- enrol/authorize/locallib.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/enrol/authorize/locallib.php b/enrol/authorize/locallib.php index 4dee694fbd2..b188cf00ebc 100644 --- a/enrol/authorize/locallib.php +++ b/enrol/authorize/locallib.php @@ -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 .= ''.get_string('uploadcsv', 'enrol_authorize').''; + } + else { + $actions .= $strs->none; + } } else { foreach ($status->actions as $value) {