From: Joe Hunt Date: Sat, 5 Jun 2010 09:01:40 +0000 (+0000) Subject: Rerun X-Git-Tag: v2.4.2~19^2~867 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=29e68a1b8dcbe7c7ecb797396945e0cccf2d6cd8;p=fa-stable.git Rerun --- diff --git a/includes/date_functions.inc b/includes/date_functions.inc index d83c612a..963cf361 100644 --- a/includes/date_functions.inc +++ b/includes/date_functions.inc @@ -162,8 +162,8 @@ function is_date_in_fiscalyear($date, $convert=false) global $path_to_root; include_once($path_to_root . "/admin/db/fiscalyears_db.inc"); - if ($_SESSION["wa_current_user"]->can_access(SA_FISCALYEAR)) // allow all open years for this one - return is_date_in_fixcalyears($date, false); + if ($_SESSION["wa_current_user"]->can_access('SA_FISCALYEARS')) // allow all open years for this one + return is_date_in_fiscalyears($date, false); $myrow = get_current_fiscalyear(); if ($myrow['closed'] == 1) return 0;