Documentation Home »Reference »Annotation Reference »@AclAncestor
current version

@AclAncestor

This annotation is used to protect a controller based on an existing access control list. The ID of the parent access control list is passed as the only option:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
// ...
use Oro\Bundle\SecurityBundle\Annotation\AclAncestor;

/**
 * @AclAncestor("an_acl_id")
 */
public function demoAction()
{
    // ...
}
ssossossosso