plugin: tree
-----controller: tree
-------------action : admin_index
數據庫表aros_acos已經更新_CRUD 1 1 1 1此ACO。我的代碼$ this-> Acl-> check(array('model'=>'User','foreign_key'=> 2),'Tree/Tree/admin_index');
錯誤:
DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:
Aro: Array
(
[model] => User
[foreign_key] => 2
)
Aco: Tree/Tree/admin_index [CORE\cake\libs\controller\components\acl.php, line 273]
所有其他行動是許可有效的,但插件的作用,我找不到原因。任何人都幫助我。
「cake acl view aco」的控制檯輸出是什麼? – bancer 2010-06-29 23:02:26