From 5abc0fb9e1da7a1f5068c864e83255860dc120b5 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 1 Oct 2009 20:08:58 +0000 Subject: [PATCH] Added comment on add_access_extensions usage --- includes/access_levels.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/access_levels.inc b/includes/access_levels.inc index 7ff20666..b35890bd 100644 --- a/includes/access_levels.inc +++ b/includes/access_levels.inc @@ -239,7 +239,13 @@ $security_areas =array( 'SA_BANKREP' => array(SS_GL_A|3, _("Bank reports and inquiries")), 'SA_GLREP' => array(SS_GL_A|4, _("GL reports and inquiries")), ); - +/* + This function should be called whenever we want to extend core access level system + with new security areas and/or sections i.e.: + . on any page with non-standard security areas + . in security roles editor + The call should be placed between session.inc inclusion and page() call. +*/ function add_access_extensions() { global $path_to_root, $security_areas, $security_sections, $installed_extensions; -- 2.30.2