Record Specific Permissions Dreaweaver MX & Access
Hi,
I'm trying to set up a security system where users can log in and see all records (this I've done) but only have permissions to edit or add new records pertaining to their own organization.
I'm using ASP in Dreamweaver MX with an Access database back end. Dreamweaver offers page specific permissions but no record specific ones. I've scoured the net and various books for help on this but no luck! I know it can be done and I hope you can help.
Thanks, Sean
Comments
permissions to edit or add new records pertaining to their own organization.
If you want the users to change/Update only their own details you have to limit the recordset results.
For that, you can try this simple logic:
Once the user logs in, you should store the username in a session variable. Mostly in Dreamweaver the user session variable will be "MM_Username".
Now you have the session for that particular user. Once the user logs out...this session also will get expire.
Now..you proceed to modify the recordset which you are using to modify the database entries.....Once you set the recordset to filter by the Username colmn in the database as follows.
Note: The Session Variable is chosen...
Now this recordset will display only a result where the session variable (MM_Username) = the Database colmn....This way you can limit the users to modify only their own data
You must me logged in to write a comment.