I have 2 menus from one table as following:
Table name = user
Menu 1: User >> contains all data for admin
Menu 2: Biodata >> contains individual data for user
In menu item modify, I add this code:
When I open app as user, the code above works fine in menu bar (menu User not showing), but in welcome page area menu User still exist.
Is it the code incorrect? Please advise.
Thank you
Table name = user
Menu 1: User >> contains all data for admin
Menu 2: Biodata >> contains individual data for user
In menu item modify, I add this code:
Quote
if($_SESSION["UserID"] != "admin") {
if ($title=="User") {
return false;
}
}
if ($title=="User") {
return false;
}
}
When I open app as user, the code above works fine in menu bar (menu User not showing), but in welcome page area menu User still exist.
Is it the code incorrect? Please advise.
Thank you