954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Deselecting a menu item depending on the user

Hi! i want to deselect a few menu items depending on the user!
For example the administrator can have access to all the menu items in the form , Manager access to an additional few items and the data entry person to have access only the data entry menu item! how is it possible to implement this!
The users are stored in the sql database with the table structure:
Username,Password,Type

Thanks

Mirfath
Light Poster
28 posts since Oct 2011
Reputation Points: 10
Solved Threads: 2
 

You will need to add roles (unless that is what the type column already does) to your user database, admin, user, guest, etc. Then when a user logs in you check the role and apply the appropriate permissions to the menus.

hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 166
 

Can i have the particular code for that please i am clueless about it!

Mirfath
Light Poster
28 posts since Oct 2011
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: