CakePHP 2.x User Management Basic Plugin Version 1.7.x
Multiple Groups To User
Now admin can assign multiple groups to a single user. I am following these steps
1. There is column user_group_id in users table which holds comma separated group ids of user.
2. If any user has more than one group then the user will have all assigned group permissions.
for e.g. there is 2 groups A & B
A has permission to Edit User details
B has permission to Delete User
Now If user is assigned both groups A & B then user will have both Edit & Delete permissions.
Sub Groups of Group
Now We can create sub groups of any group. And sub group can be assigned to any user.
For Permission-
By default sub group will get all permissions of parent group. You can revoke/add any permission from sub group.