We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon 2.0 BUG

I have some problem with ACL and roles extends.


$acl->addRole($guest);
$acl->addRole($basic_user, $guest);
$acl->addRole($user, $basic_user);
$acl->addRole($admin, $user);

This idea is very easy. Everythink what can guest do it's avaible from basic user. User extends privileges to basic user etc..etc..

When I migrate to Phalcon 2.0 I realise that roles can extend privileges only for first parent. I have resources avaible for guest, I'm logged using 'admin' role and ACL return false. Each privileges for user are avaible for admin.

$acl->setDefaultAction(\Phalcon\Acl::DENY);

Could you please post this as a bug on Github?

Could you mark this question as solved ?