I'm setting up a site with three user levels (admin, privileged user and regular user). All three need to have access to data, but the regular users should only have access to data assigned to them.
For example, regular user uploads a photo. Admin and privileged users can see it, and so can the regular user who uploaded it, but not other regular users.
I was thinking of having one SQL table with users and a # 1-3 to specify the type of user. However when setting up the table that holds the data, how would I go about linking it to the user table?
For example, regular user uploads a photo. Admin and privileged users can see it, and so can the regular user who uploaded it, but not other regular users.
I was thinking of having one SQL table with users and a # 1-3 to specify the type of user. However when setting up the table that holds the data, how would I go about linking it to the user table?