I’m looking to have a admin-user table, I’ve done this plenty of times before with user levels 1,2,3,4 and 5 etc.
However the current project has (so far) 5 different functions with the requirement to add more.
Each user will be given differnet combination of permissions.
Two solutions could be
1. In my admin-users table, have a column for each function and have 1 or 0. I don’t like this as it will require consistant table changing.2. Have a admin-funcations table and a table linking users and functions together. It’s just messy.
Are there any other ways of doing this. Do recall in a .net project from 5-10 years ago using a single column for the permissions. By memory ininteger as there are 32 bits. You assigned each bit to a function.
Could this be done in MySQL and PHP?