dprichard
08-17-2007, 07:44 PM
I have database tables for folders and a database with documents in it.
The folders table is setup like this
folderid
foldername
folderdescription
The document table is setup like this
documentid
documentname
documentdescription
folderid
I have a user table and want to set it so I can say certain users have permission on certain folder but not others.
I was thinking about adding a group table and putting the users in groups, but then certain users may need access to more than one document folder. I am thinking I will need to add some sort of table that handles just the permissions, but I am not sure.
I am just trying to sort out how to make it so I can put groups in and assign access to folders based on the groups.
Any input would be greatly appreciated.
The folders table is setup like this
folderid
foldername
folderdescription
The document table is setup like this
documentid
documentname
documentdescription
folderid
I have a user table and want to set it so I can say certain users have permission on certain folder but not others.
I was thinking about adding a group table and putting the users in groups, but then certain users may need access to more than one document folder. I am thinking I will need to add some sort of table that handles just the permissions, but I am not sure.
I am just trying to sort out how to make it so I can put groups in and assign access to folders based on the groups.
Any input would be greatly appreciated.