What i did... $this->ArosAco->find('all', array('fields' => array('Aco.alias','Aco.lft', 'Aco.rght'), 'order' => 'lft ASC', 'recursive' => 1, 'conditions' => array( 'Aro.id' => $this->Session->read ('Auth.User.id') ) ) );
make sure you put var $uses = array('ArosAco') in your controller. and On Mar 22, 11:13 pm, Smelly_Eddie <ollit...@gmail.com> wrote: > I understand using ACL to grant, revoke, check, etc on a specific ACO. > > My curiosity is how to list all IDs of a particular model I have > access to. > > So it there is a user named Fee (ARO). And I grant Fee access to read > the following items (ACOs) Ship, Paper, Milly. > > Is there a simple means in the Items Controller Index to return all > items fee has access to? THis way when Fee vies the index he only sees > Ship, Paper and Milly. > > I took a look in the API but didn't really see what I was looking for. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---