Acl\Adapter\Memory::isAllowed

public isAllowed (mixed $roleName, mixed $resourceName, mixed $access, [array $parameters])

Check whether a role is allowed to access an action from a resource

//Does andres have access to the customers resource to create?
 $acl->isAllowed('andres', 'Products', 'create');

 //Do guests have access to any resource to edit?
 $acl->isAllowed('guests', '*', 'edit');
doc_Phalcon
2016-10-16 09:47:27
Comments
Leave a Comment

Please login to continue.