|
|
|
|
Re: MENU SECURITY [message #137284 is a reply to message #137276] |
Wed, 14 September 2005 06:37 |
sarfraz_attari
Messages: 123 Registered: July 2005
|
Senior Member |
|
|
hi
thanx for ur reply
but even if i create the menu roles and assign it to particular menu item but how can restrict user to use that particular option
i need user level security
thanx
sarfraz
|
|
|
Re: MENU SECURITY [message #137294 is a reply to message #137284] |
Wed, 14 September 2005 07:30 |
|
Maaher
Messages: 7065 Registered: December 2001
|
Senior Member |
|
|
Sarfraz,
read my previous post again:
- You need database roles.
- Assign these to the users and menu items as you please.
An example:
Databse roles: menu_role_all, menu_product_role, menu_client_role
Users: user_x: administrator ( has menu_role_all ), stock_user ( has menu_product_role ), sales_rep ( has menu_client_role )
This is the menu ( with the menu roles )
MAIN
|
-- Products ( menu_role_all, menu_product_role )
|
-- Clients ( menu_role_all, menu_client_role )
|
-- Help ( menu_role_all, menu_product_role, menu_client_role ) Now, the administrator has access to all menus
the stock_user can only access the products menu and help
the sales_rep can only access the clients menu and help
The key is that you assign the appropriate roles to the menu items and grant those to the users.
There you have your user level security. I've seen it work, used it myself. It's no big task.
Usually, we had a default menu role, assigned to every user, that granted access to "help" and exit.
MHE
|
|
|