public allow (mixed $roleName, mixed $resourceName, mixed $access, [mixed $func])
Allow access to a role on a resource You can use ‘*’ as wildcard Example:
1 2 3 4 5 6 7 8 9 10 11 | //Allow access to guests to search on customers $acl ->allow( 'guests' , 'customers' , 'search' ); //Allow access to guests to search or create on customers $acl ->allow( 'guests' , 'customers' , array ( 'search' , 'create' )); //Allow access to any role to browse on products $acl ->allow( '*' , 'products' , 'browse' ); //Allow access to any role to browse on any resource $acl ->allow( '*' , '*' , 'browse' ); |
Please login to continue.