I have a PHP script with many restricted areas. In each of these areas I have a function that checks if the user have access to the current area by checking the “usergroup” table. That problem is I have over 100 columns now so I’m not sure if that’s a correct database design.
Share
I think this might have been the incorrect approach.
You should have gone for something like
UserGroups
UserGroupRules
UserGroupRuleLinks
Then could have simply checked if the group has the appropriate rule associated.