Hmm that’s good, but what if a user is in multiple groups.
Maybe make an array, serialize it and save it to db, and after unserialize and check with in_array function, or something…
Nah
They’re in depts and groups
Why would you be a user and a super admin?
Why would you be a manager and a publisher?
You can however be an engineer and a manager
Or a designer and a manager.
That way Engineer managers can’t see Designer managers sub groups/info, uless you want them to.
So do a dept check then a user data check
Simplifies things a hell of a ways, keeps db simplified and queries simplified.
I have 75 depts and 12 user levels.
Combination of access levels and control from that are astounding. Therefore not limiting
Works for me!! Thing with most coding, must suit you.