Re: ACL - How to list all grants by ACO and action

2009-03-22 Thread Smelly Eddie
Thanks, that is the path I just started stumbling down. Since I am being restrictive to one Model though it looks more like this; $this->ArosAco->find('all', array( 'recursive'=>1, 'conditions'=>array('Aco.alias'=>'ModelName','Aro.foreign_key'=> $this->som

Re: ACL - How to list all grants by ACO and action

2009-03-22 Thread gimmebucks
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 ('A

Re: ACL - How to list all grants by ACO and action

2009-03-22 Thread gimmebucks
What i did.. 1) get logged in user id - $this->Session->read('Auth.user.id') 2) find all related field on acos with aros_acos model. $this->ArosAco->find('all', array('fields' => array('Aco.alias','Aco.lft', 'Aco.rght'), 'order' => 'lft ASC', 'rec

ACL - How to list all grants by ACO and action

2009-03-22 Thread Smelly_Eddie
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