Permalink
Browse files

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

…orize:uploadcsv').
  • Loading branch information...
ethem
ethem committed Oct 30, 2006
1 parent 75c3849 commit 2760b4f4cccc10452f2d610375f62de106f1690d
Showing with 6 additions and 1 deletion.
  1. +6 −1 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) {

0 comments on commit 2760b4f

Please sign in to comment.