I am using cakephp 2.3.0 and working with ACL. I am giving the permission to a group as follows:
$group->id = 2;
$this->Acl->deny($group, 'controllers');
$this->Acl->allow($group, 'controllers/Posts');
Now how can I check 'controllers/Posts' is allowed for $group->id = 2 from same controller?
I am trying
$this->Acl->check('controllers/Posts', '2');
but it always return false and generate warning:
Failed ARO/ACO node lookup in permissions check. Node references:
Aro: controllers/Pages
Aco: Data entry operator
Please help me. Thanks.