Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show a link for echeck payments if an user has_capability('enrol/auth…

…orize:uploadcsv').
  • Loading branch information...
commit 2760b4f4cccc10452f2d610375f62de106f1690d 1 parent 75c3849
ethem authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 enrol/authorize/locallib.php
View
7 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 .= '<a href="uploadcsv.php">'.get_string('uploadcsv', 'enrol_authorize').'</a>';
+ }
+ else {
+ $actions .= $strs->none;
+ }
}
else {
foreach ($status->actions as $value) {
Please sign in to comment.
Something went wrong with that request. Please try again.