Dear all,
I need to show some menus labels to only “admin” user. Other users can’t see and access to them. (i.e. new user creation etc.)
Is it possible and how.
Many thanks
Giovannino
Dear all,
I need to show some menus labels to only “admin” user. Other users can’t see and access to them. (i.e. new user creation etc.)
Is it possible and how.
Many thanks
Giovannino
Re: How show part of menus visible only to admin user
Hello there,
You will need to use some macros to hide/show the menu itens.
Go inside our webhelp, scriptcase macros, there’s an entire section with the menu macros.
Re: How show part of menus visible only to admin user
if(isset($_SESSION['userlevel'])) {
if ($_SESSION['userlevel'] < 9) {
sc_menu_disable(item_5); // delete admin menu for users
sc_menu_disable(item_16); // delete report menu for users
} else { sc_reset_menu_disable(); }
} else {
sc_redir(login.php);
}
Regards,
Scott.
Re: How show part of menus visible only to admin user
Great !!! I will try on wednesday .
Bye
Giovannino
Re: How show part of menus visible only to admin user
OK.
It works !!!
Thanks