Hi,
We keep our sales details on the web site. I setup step 9 of 12 with following parameters. Sales Represents can see and edit their own REGION records.
Username and password from database
-------------------------------------------------
Table :tbl_users
Username field :tbl_users_username
Password field :tbl_users_password
Advanced....
---------------
"Users can see edit their own data only"
Users Table: OwnerID field
------------------------------
tbl_users_region
Main Table: OwnerID field
-----------------------------
tbl_sales_region
It's great works until right now. Because Sales department want to increase a security today.
- All "Sales Represent" users can see and edit their own data only (not all regions data)
- "Regional Manager" users can see and edit their OWN REGION data only
I changed ..._list.asp, ..._aspfunctions.asp files, however I couldn't solve this complex security. What can I do for two restirictions on the list page?
Best Regards,
Bulent
TABLES INFORMATION
tbl_users
---------
tbl_users_id
tbl_users_username
tbl_users_password
tbl_users_fullname
tbl_users_region
tbl_users_title
Example Records
--------------------
1 | fantom | password | Sergey | Europe | Sales Represent
2 | batman | password | Terry | Asia | Sales Represent
3 | td | password | Tommy | Asia | Sales Represent
4 | dallas | password | David | Europe | Sales Represent
5 | supergirl | password | Nicy | Europe | Regional Manager
6 | zagor | password | Michael | Asia | Regional Manager
tbl_sales
---------
tbl_sales_id
tbl_sales_user
tbl_sales_region
tbl_sales_date
tbl_sales_price
tbl_sales_amount
tbl_sales_date