first of all sorry for the empty message that i sent before this one.

Personally i created my own ACOs tree structure in this way, i added a
root node
then i created two big branches 'controllers' and 'admin'

  $aco->create(array('parent_id' => $root_id, 'model' => null, 'alias'
=> 'controllers'));
  $aco->save();
  $CONTROLLER = $aco->id;
  $aco->create(array('parent_id' => $root_id, 'model' => null, 'alias'
=> 'admin'));
  $aco->save();

then i created the nodes for the controllers and for the admin parts
of the controllers

     $aco->create();
     $aco->save(array('model'=>'null','foreign_key'=>null,'parent_id'=>
$CONTROLLER,'alias'=>$controller));
     $controller_aco = $aco->id;

     $aco->create();
     $aco->save(array('model'=>'null','foreign_key'=>null,'parent_id'=>
$ADMIN,'alias'=>'Admin.'.$controller));
     $admin_controller_aco = $aco->id;

at the end, in the first branch i put all the 'normal' actions
instead in the second branch (the one with alias
Admin.#controllername# )  i put all the admin actions



On Oct 29, 8:03 am, cbankier <[EMAIL PROTECTED]> wrote:
> I know there are ample tutorials on acl, and a few posts in here, but
> I haven't been able to find anything to help my specific problem.
> I'm using acl with auth to control access to actions - that all works
> fine on my normal controllers.
> I have then added a plugin, which has actions using admin_routing, and
> am having trouble specifying acos for these controllers/actions.
> How can I tell what path cake is looking for an aco node in for a
> particular action? I tried printing out 
> $this->Auth->action($this->params['url']['url']) which gives me the path I 
> would expect. I have
>
> a node with this path, and logged in as a user with access to the root
> node, and yet get rejected from accessing the action.
>
> Are there any tips for how I can track down where it is going wrong?
> Cheers,
> Colin.
--~--~---------~--~----~------------~-------~--~----~
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