From: Joe Hunt Date: Sun, 6 Jun 2010 15:25:17 +0000 (+0000) Subject: Allowing SA_MULTIFISCALYEAR access to enter transactions on open fiscal years X-Git-Tag: v2.4.2~19^2~866 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=0c35858b77d57a2990c547523b0b62d3eefb9b89;p=fa-stable.git Allowing SA_MULTIFISCALYEAR access to enter transactions on open fiscal years --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 894e5fe4..40c22395 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -20,9 +20,10 @@ Legend: $ -> Affected files 05-Jun-2010 Joe Hunt -! Allowing SA_FISCALYEAR access to enter transactions on open fiscal years +! Allowing SA_MULTIFISCALYEAR access to enter transactions on open fiscal years $ /admin/db/fiscalyears_db.inc /includes/date_functions.inc + /includes/acces_levels.inc 31-May-2010 Joe Hunt ! Allowing modifying of Bank Payments/Deposits diff --git a/includes/access_levels.inc b/includes/access_levels.inc index 709e46f3..77dcae9a 100644 --- a/includes/access_levels.inc +++ b/includes/access_levels.inc @@ -227,6 +227,7 @@ $security_areas =array( 'SA_FISCALYEARS' => array(SS_GL_C|9, _("Fiscal years maintenance")), 'SA_GLSETUP' => array(SS_GL_C|10, _("Company GL setup")), 'SA_GLACCOUNTTAGS' => array(SS_GL_C|11, _("GL Account tags")), + 'SA_MULTIFISCALYEARS' => array(SS_GL_C|13, _("Allow entry on non closed Fiscal years")), 'SA_BANKTRANSVIEW' => array(SS_GL|1, _("Bank transactions view")), 'SA_GLTRANSVIEW' => array(SS_GL|2, _("GL postings view")), diff --git a/includes/date_functions.inc b/includes/date_functions.inc index 963cf361..c06dc4d3 100644 --- a/includes/date_functions.inc +++ b/includes/date_functions.inc @@ -162,7 +162,7 @@ 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_FISCALYEARS')) // allow all open years for this one + if ($_SESSION["wa_current_user"]->can_access('SA_MULTIFISCALYEARS')) // allow all open years for this one return is_date_in_fiscalyears($date, false); $myrow = get_current_fiscalyear(); if ($myrow['closed'] == 1)