From af927d3e6f6fb02c6c3082e7cb9efea9c198d147 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Wed, 30 Sep 2009 22:20:12 +0000 Subject: [PATCH] Fixed access to payment when deposits are disabled. --- gl/gl_bank.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gl/gl_bank.php b/gl/gl_bank.php index 1e5718b5..0458b152 100644 --- a/gl/gl_bank.php +++ b/gl/gl_bank.php @@ -9,10 +9,12 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = isset($_GET['NewPayment']) ? 'SA_PAYMENT' : 'SA_DEPOSIT'; $path_to_root = ".."; include_once($path_to_root . "/includes/ui/items_cart.inc"); include_once($path_to_root . "/includes/session.inc"); +$page_security = isset($_GET['NewPayment']) || + @($_SESSION['pay_items']->trans_type==ST_BANKPAYMENT) + ? 'SA_PAYMENT' : 'SA_DEPOSIT'; include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/data_checks.inc"); -- 2.30.2