I am using ACL in Phalcon PHP (Phalcon\Acl\Adapter\Memory). I would like to know if it is possible to get all resources / actions a specific role is permitted to do / to access?
This code checks if a specific role is permitted to perform a specific action on a specific resource:
$acl->isAllowed("Guests", "Customers", "create");
I don't want to run over all resources and actions and check permissions with the code above. I need it all at once.
Is it possible?
This would return all the roles in the form of an array:
the same way they are stored inside the acl.