X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=themes%2Fdefault%2Frenderer.php;h=e32cbb46876460cd79495dce09593d8a09bfbaa1;hb=0489317205141deaecefe3a7243d11a3e38a51d0;hp=c57cc92ebccc2d8bd3dd03588ffff9496e26f787;hpb=ce52da010251810cd6500d9fbf0ff89da88e07b5;p=fa-stable.git diff --git a/themes/default/renderer.php b/themes/default/renderer.php index c57cc92e..e32cbb46 100644 --- a/themes/default/renderer.php +++ b/themes/default/renderer.php @@ -9,6 +9,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ + class renderer { function get_icon($category) @@ -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