cakephp-3-acl-example icon indicating copy to clipboard operation
cakephp-3-acl-example copied to clipboard

Couldn't find Aros node (Groups)

Open makakken opened this issue 7 years ago • 1 comments

Hey Guys, followed the Tutorial to setup ACL in an already existing Project. Now I Have the following error when i run: bin/cake acl grant Groups.1 controllers

Exception: AclNode::node() - Couldn't find Aros node identified by "Array
(
    [Aros0.model] => Groups
    [Aros0.foreign_key] => 1
)
" in [/makakken/vendor/cakephp/acl/src/Model/Table/AclNodesTable.php, line 183]
2017-08-03 07:38:39 Error: [Cake\Core\Exception\Exception] AclNode::node() - Couldn't find Aros node identified by "Array
(
    [Aros0.model] => Groups
    [Aros0.foreign_key] => 1
)

Can Anyone please give ma hint how to solve the Problem? Yes there is a group with ID 1, it's Administrators , yes there is also a User having the group_id = 1

Running on Dev-Server of PHP 7.1.7

makakken avatar Aug 03 '17 07:08 makakken

run the command bin/cake acl_extras aco_sync to generate nodes

fatematzuhora avatar Dec 20 '17 13:12 fatematzuhora