Added comment on add_access_extensions usage
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 1 Oct 2009 20:08:58 +0000 (20:08 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 1 Oct 2009 20:08:58 +0000 (20:08 +0000)
includes/access_levels.inc

index 7ff206664ee8cfa00fc239640f47a84a602a5992..b35890bd7df3e1ffcea909e773036d680309a5f5 100644 (file)
@@ -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;