プロファイルベースのアプリケーションを構築しています。ここにある単純な acl 制御アプリケーション チュートリアルを使用しようとしています: http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-managed-application。 html、グループと権限を作成します。別のユーザーとしてログインしたときに機能する権限を取得する際に問題が発生しました。管理者、マネージャー、およびユーザー グループがあります。ACO と ARO を設定し、各グループに権限を追加しました。これが私の
class AppController extends Controller {
    public $components = array(
        'Acl',
        'Auth'=>array(
            'loginRedirect'=>array('controller'=>'users', 'action'=>'index'),
            'logoutRedirect'=>array('controller'=>'users', 'action'=>'index'),
            'authError'=>'You cannot access that page',
            'authorize'=>array('actionPath' => 'controllers')
        ),
        'Session'
    );
    public function isAuthorized($user) {
        return true;
    }
    public function beforeFilter() {
        $this->Auth->authorize = array(
            'Actions' => array(
                'userModel' => 'User',
                'actionPath' => 'users'
            )
        );
        $this->Auth->allow('display');
        $this->set('logged_in', $this->Auth->loggedIn());
        $this->set('current_user', $this->Auth->user());
    }
}
UserController.php
class UsersController extends AppController {
    public function beforeFilter() {
        parent::beforeFilter();
        $this->Auth->allow('view');
    }
    public function login() {
        if ($this->request->is('Post')) {
            if ($this->Auth->login()) {
                $this->redirect($this->Auth->redirect());
            } else {
                $this->Session->setFlash('Your username/password combination was incorrect');
            }
        }
    }
    public function logout() {
        $this->redirect($this->Auth->logout());
    }
私が今得ているエラーは次のとおりです。
Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:
Aro: Array
Permission::check() - CORE/Cake/Model/Permission.php, line 94
DbAcl::check() - CORE/Cake/Controller/Component/Acl/DbAcl.php, line 73
AclComponent::check() - CORE/Cake/Controller/Component/AclComponent.php, line 109
ActionsAuthorize::authorize() - CORE/Cake/Controller/Component/Auth/ActionsAuthorize.php, line 40
AuthComponent::isAuthorized() - CORE/Cake/Controller/Component/AuthComponent.php, line 412
AuthComponent::startup() - CORE/Cake/Controller/Component/AuthComponent.php, line 336
ObjectCollection::trigger() - CORE/Cake/Utility/ObjectCollection.php, line 132
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 248
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 671
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 184
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 109
何らかの理由で、アクセス許可にアクセスできません。そして、これを修正する解決策を見つけることができないようです。どんな助けでも素晴らしいでしょう!前もって感謝します!