I've been struggling with using the ACL plugin from
http://bakery.cakephp.org/articles/view/acl-management-plugin in
conjunction with the 1.2.x tutorial on ACL.

I created a controller from the code provided at
http://book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs,
which creates the ACO's I need for my application.

The problem I run into is that this doesn't cover the plugins, so if I
turn on ACL, I get an error when I try to go to the admin/acl page:

Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in
permissions check.  Node references:
Aro: Array
(
    [User] => Array
        (
            [user_id] => 1
            [user_name] => admin
            [full_name] => Administrator
            [user_email] => [EMAIL PROTECTED]
            [status_code] => New
            [date_created] =>
            [user_created] =>
            [date_modified] => 2008-10-30 10:06:53
            [user_modified] =>
            [group_id] => 1
        )

)

Aco: controllers//admin_index [CORE/cake/libs/controller/components/
acl.php, line 283]

Code | Context

$aro    =       array(
        "User" => array(
        "user_id" => "1",
        "user_name" => "admin",
        "full_name" => "Administrator",
        "user_email" => "[EMAIL PROTECTED]",
        "status_code" => "New",
        "date_created" => null,
        "user_created" => "",
        "date_modified" => "2008-10-30 10:06:53",
        "user_modified" => "",
        "group_id" => "1"
)
)
$aco    =       "controllers//admin_index"
$action =       "*"
$permKeys       =       array(
        "_create",
        "_read",
        "_update",
        "_delete"
)
$aroPath        =       array(
        array(
        "Aro" => array()
),
        array(
        "Aro" => array()
),
        array(
        "Aro" => array()
),
        array(
        "Aro" => array()
)
)
$acoPath        =       false


        if (empty($aroPath) || empty($acoPath)) {
            trigger_error("DbAcl::check() - Failed ARO/ACO node lookup
in permissions check.  Node references:\nAro: " . print_r($aro,
true) . "\nAco: " . print_r($aco, true), E_USER_WARNING);

DbAcl::check() - CORE/cake/libs/controller/components/acl.php, line
283
AclComponent::check() - CORE/cake/libs/controller/components/acl.php,
line 91
AuthComponent::isAuthorized() - CORE/cake/libs/controller/components/
auth.php, line 446
AuthComponent::startup() - CORE/cake/libs/controller/components/
auth.php, line 372
Component::startup() - CORE/cake/libs/controller/component.php, line
103
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 229
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 213
[main] - APP/webroot/index.php, line 90

Warning (2): Cannot modify header information - headers already sent
by (output started at /Users/robweaver/Sites/cake_1.2/cake/basics.php:
111) [CORE/cake/libs/controller/controller.php, line 587]

I tried getting the plugin controllers by using the
Configure::listObjects('plugin'), but that just gives me the name of
the plugin ('Acl').

I'm guessing I need to add some Aco rows to make this work, but I
really don't understand what they need to look like.

So can somebody tell me how to:

1) get the list of controllers (and actions) for the plugins
2) set up the creation of the Aco for those controllers.
--~--~---------~--~----~------------~-------~--~----~
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