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:
if($_SESSION["UserID"] != "admin") {
if ($title=="User") {
return false;
}
}
When I open app as user, the code above works fine in menu bar (menu Usernot showing), but in welcome page area menu Userstill exist.
Is it the code incorrect? Please advise.
Thank you