As far as I know there's nothing out of the box that's going to help you do this. The ACL check function is designed to check one CRUD value on one ACO path at a time. It's a pretty basic implementation designed for performing a single check on a per-page basis (as opposed to dozens of checks on a page).
Since it's such a complex level of querying, to do it efficiently, I would strongly recommend writing your own queries (or stealing the ones generated by Cake and optimizing them for your specific needs. - James On Jul 8, 7:37 am, sc0rp <[EMAIL PROTECTED]> wrote: > Hi, > I'm testing ACL in CakePHP 1.2. I build ACOs and AROs like this: > > Aro tree: > --------------------------------------------------------------- > [1]Users > [2]Moderators > [3]Administrators > [4]admin > [6]mod > [5]user > [7]Guests > --------------------------------------------------------------- > > Aco tree: > --------------------------------------------------------------- > [1]Board > [2]Board.2 > [3]Board.3 > [4]Board.4 > [5]Board.5 > [6]Board.6 > --------------------------------------------------------------- > > Permissions are set like this: > [1]Users Board.2 Board.5 Board.6 > [2]Moderators Board.2 Board.3 Board.5 Board.6 > [3]Administrators Board.2 Board.3 Board.4 Board.5 Board.6 > [4]admin > [6]mod > [5]user > [7]Guests Board.6 > > Ok now I will try describe problem: > I would like to type $this->Board->FindAll(); > and as result I would like to get only Boards which are allowed for my > user. > > examples: > ARO: Users > Result: Boards with id: 2,5,6 > > ARO: Guests > Result: Boards with id: 6 > > I don't wanna filter this in controller I need this in Model, anyone > could help me? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
