From 2760b4f4cccc10452f2d610375f62de106f1690d Mon Sep 17 00:00:00 2001 From: ethem Date: Mon, 30 Oct 2006 10:12:20 +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 4dee694fbd..b188cf00eb 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) { -- 2.39.5