Hi guys.
I have a problem which I hope someone can help me with.
I,ll briefly show what tables I have and then the problem.
Tables
USERS
user_id
user_password
GROUPS
group_id
group_name
USERGROUPS
user_id
group_id
MODULES
module_id
module_name
PERMISSIONS
permission_id
permission_name
MODULEPERMISSIONS
module_id
permission_id
Now then, obviously this is designed for a website, which has named modules to seperate the different sections. Each of these modules has a set of permissions associated with it. The permissions table will hold every permission needed by any module (some will need all permissions, others will need only a selected few, and I want to keep the ability to create a new permission at any time).
The modulepermissions table, will hold details about the permissions a module can have.
Now I need to be able to associate a group with a permission for a module, that the module has, and not able to select a permission which isnt defined in the modulepermission table.
I,m stuck on this.
Can anyone offer me any advice?
Thankyou.