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
-~----------~----~----~----~------~----~------~--~---

Reply via email to