Restore of the 4 include files in types.inc
[fa-stable.git] / includes / current_user.inc
index fc11db8442acec040c7072dc8e9bccfa48a31025..5430b1104c2eb1d59b1ae31df94f364a0901bf1b 100644 (file)
@@ -123,7 +123,7 @@ class current_user
                        return !isset($security_groups) && is_array($this->role_set);
        }
 
-       function can_access_page($page_level)
+       function can_access($page_level)
        {
                global $security_groups, $security_areas;
 
@@ -140,6 +140,11 @@ class current_user
                        && ($this->company == 0 || ($code&~0xff != SS_SADMIN));
        }
 
+       function can_access_page($page_level)
+       {
+               return $this->can_access($page_level);
+       }
+
        function get_db_connection()
        {
        global $db_connections;