From: Janusz Dobrowolski Date: Wed, 30 Sep 2009 22:20:12 +0000 (+0000) Subject: Fixed access to payment when deposits are disabled. X-Git-Tag: v2.4.2~19^2~1175 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=af927d3e6f6fb02c6c3082e7cb9efea9c198d147;p=fa-stable.git Fixed access to payment when deposits are disabled. --- 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");