User Permission Tree: How to get there?

alsb0r

New Member
I'm implementing a product stock manage website, witch has many layers of permissions. It has an admin that has all kind of permissions and then level 2, 3, 4, etc... that will have less permitions. But specific users can have special permissions, like for example creating users, or read information about other users. Consider the following scenario:\[code\] * admin inserted user1, user2 and user3. * user1 inserted user4 and user5 under his supervision. * user1 edited user4's permission so: user4 can see all user5's activity, but user5 cannot see user4's activity. * user5 inserted user6 and user7 and can see all their activity, but user4 cant! * user2 is in the same "level" and user1 and user3, but he cant see their sublevels activity.\[/code\]How can I make this permission-tree implicit in my database?Graphical scheme of the permissions tree:
WSMRZ.png
 
Back
Top