fix: Users not authorized for any payment gateway now get appropriate message
This commit is contained in:
parent
efa444c1d3
commit
03b8f4e4d4
2 changed files with 5 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
||||||
7.2.3
|
7.2.3
|
||||||
- fix: minor bug with new template vars in Auth::createAccount
|
- fix: minor bug with new template vars in Auth::createAccount
|
||||||
- fix: How to get to List Pending Transactions screen?
|
- fix: How to get to List Pending Transactions screen?
|
||||||
|
- fix: Users not authorized for any payment gateway get appropriate message
|
||||||
|
|
||||||
7.2.2
|
7.2.2
|
||||||
- fix: Show Debugging option not working
|
- fix: Show Debugging option not working
|
||||||
|
|
|
||||||
|
|
@ -1026,6 +1026,10 @@ sub www_selectPaymentGateway {
|
||||||
my $paymentGateway = $pluginLoop[0]->{namespace};
|
my $paymentGateway = $pluginLoop[0]->{namespace};
|
||||||
return WebGUI::Operation::Commerce::www_selectPaymentGatewaySave($session, $paymentGateway);
|
return WebGUI::Operation::Commerce::www_selectPaymentGatewaySave($session, $paymentGateway);
|
||||||
}
|
}
|
||||||
|
# If the user is not authorized for any payment gateways, error
|
||||||
|
elsif (scalar(@pluginLoop) < 1) {
|
||||||
|
return $session->privilege->noAccess();
|
||||||
|
}
|
||||||
|
|
||||||
$var{pluginLoop} = \@pluginLoop;
|
$var{pluginLoop} = \@pluginLoop;
|
||||||
$var{message} = $i18n->get('select payment gateway');
|
$var{message} = $i18n->get('select payment gateway');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue