You are currently viewing documentation for a previously released version of OroCommerce. See the latest long-term support 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()
{
// ...
}
|