Hi All,
I have got a problem, I can't, after examining few solutions, find the
right ACL solution for the following.
1) I want to control user actions (controller/action) per role using
ACL. This I know how to do, I have done it having a simple User has 1
role, easy ..by:
Aro: User. id aro having a Role id parent aro, aco: "controller/
action". (aco action having parent aco controller)
Now the problem:
3 models :
Role (predefined roles)
1 - Admin
2 - Underwriter
3 - Manager
4 - User
Partner hasMany User
User belongsTo Partner
hasOne Role
Now I wounder how to set this in ACL, for the following :
Customer/edit allowed for user Underwriter of Partner A
Customer/edit denied for user Underwriter of Partner B
etc ..
What I though:
ARO can be a Partner having a parent Role aro, that means I have to
create an N aro when I create as many Partner / role parent as I have
roles. It seems I can't use the parentNode() in the Partner model, (I
can return a Role record for it), but that will create only 1 Aro.
ACO would be "actions" pointing to parent aco that are "controllers"..
Well, can't it right in my head now ..If you have any ideas/
suggestions, they are welcome
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---