Important
You are browsing the documentation for version 3.1 of OroCommerce, OroCRM and OroPlatform, which is no longer maintained. Read the latest LTS version of the Oro documentation to get up-to-date information.
See our Release Process documentation for more information on the currently supported and upcoming releases.
@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// ...
2use Oro\Bundle\SecurityBundle\Annotation\AclAncestor;
3
4/**
5 * @AclAncestor("an_acl_id")
6 */
7public function demoAction()
8{
9 // ...
10}