I'm trying to grant edit Users permission to a group (users) using the cli.
Here's the relevant line from the aros table:
id parent_id model foreign_key alias lft rght
3 NULL Group 3 NULL 13 22
开发者_JS百科Here's the relevant line from from the acos table:
id parent_id model foreign_key alias lft rght
27 1 NULL NULL Users 68 89
31 27 NULL NULL edit 75 76
I tried using this command:
cake acl grant users Users edit
but I got this error message:
PHP Warning: DbAcl::allow() - Invalid node in /var/www/html/cakepf/cake/libs/controller/components/acl.php on line 361
Warning: DbAcl::allow() - Invalid node in /var/www/html/cakepf/cake/libs/controller/components/acl.php on line 361 Permission was not granted.
Any assistance on how to accomplish this would be much appreciated.
Cake responds with an invalid node error: it cannot find the node you're referencing. When you look at the command you're executing, you're trying to access the node users
. How should Cake know which node this is? The alias column for your node in your aros
table is empty.
Solution: use the right alias in your aros
table. You can also use cake acl view aro
or cake acl view aco
to see what your ACL tables look like to Cake.
精彩评论