Rewritten extensions system to enable per company module/plugin
[fa-stable.git] / includes / access_levels.inc
index b4e4d7889324f2ff2d14611ba0d620941f766a17..3c60a0922a83a308498896ac2fc63b4cf2314ded 100644 (file)
@@ -249,13 +249,7 @@ function add_access_extensions()
        include($path_to_root.'/installed_extensions.php');
        foreach($installed_extensions as $ext) {
                if (isset($ext['acc_file']))
-                       include_once($path_to_root.'/'.$ext['folder'].'/'.$ext['acc_file']);
-       }
-       // Add modules private access levels
-       include($path_to_root.'/modules/installed_modules.php');
-       foreach($installed_modules as $mod) {
-               if (isset($mod['acc_file']) && $mod['acc_file'] != '')
-                       include($path_to_root.'/modules/'.$mod['path'].'/'.$mod['acc_file']);
+                       include_once($path_to_root.($ext['type'] == 'plugin' ? '/modules/':'/').$ext['path'].'/'.$ext['acc_file']);
        }
 }
 ?>
\ No newline at end of file