X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fdefault%2Frenderer.php;h=e32cbb46876460cd79495dce09593d8a09bfbaa1;hb=0489317205141deaecefe3a7243d11a3e38a51d0;hp=6df2553f8bec5352239ef03c4690a956af193d6f;hpb=4e4ce8577f8582967995919860c66aa94d633afd;p=fa-stable.git diff --git a/themes/default/renderer.php b/themes/default/renderer.php index 6df2553f..e32cbb46 100644 --- a/themes/default/renderer.php +++ b/themes/default/renderer.php @@ -9,17 +9,18 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ + class renderer { function get_icon($category) { global $path_to_root, $show_menu_category_icons; -; + if ($show_menu_category_icons) $img = $category == '' ? 'right.gif' : $category.'.png'; else $img = 'right.gif'; - return "  "; + return "  "; } function wa_header() @@ -56,10 +57,13 @@ echo "
"; foreach($applications as $app) { - $acc = access_string($app->name); - echo "" .$acc[0] . ""; + if ($_SESSION["wa_current_user"]->check_application_access($app)) + { + $acc = access_string($app->name); + echo "" .$acc[0] . ""; + } } echo "
"; echo ""; @@ -140,9 +144,12 @@ global $path_to_root; $selected_app = $waapp->get_selected_application(); - + if (!$_SESSION["wa_current_user"]->check_application_access($selected_app)) + return; foreach ($selected_app->modules as $module) { + if (!$_SESSION["wa_current_user"]->check_module_access($module)) + continue; // image echo ""; // values @@ -162,7 +169,7 @@ { echo $img.menu_link($appfunction->link, $appfunction->label)."
\n"; } - else + elseif (!$_SESSION["wa_current_user"]->hide_inaccessible_menu_items()) { echo $img.'' .access_string($appfunction->label, true) @@ -182,7 +189,7 @@ { echo $img.menu_link($appfunction->link, $appfunction->label)."
\n"; } - else + elseif (!$_SESSION["wa_current_user"]->hide_inaccessible_menu_items()) { echo $img.'' .access_string($appfunction->label, true) @@ -193,10 +200,11 @@ } echo ""; - } - + } echo ""; } - } + } + + ?> \ No newline at end of file