I have a set of tables that a doctor uses to keep patient records. For example: client details, therapy notes, etc etc... There are three doctors in the practice.
Here is my question:
I want my logged in users (the doctors) to only be able to access the rows of data that they have created and not rows of data associated with another user. I understand from Imar that
Quote:
|
Membership.GetUser().ProviderUserKey
|
could be the answer... How would I use this though?
I would assume that the rows of data that the user creates (INSERTS) would have inserted their user ID into a column like UserId, for example.
If so, is this safe enough that other users wont be able to access the wrong rows of data?
And also, how do I get the userId data from the ASPNETDB.mdf to my own database safely?
Regards
Lee