![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/framework/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework; use Laminas\Permissions\Acl\Role\GenericRole; use Magento\Framework\Acl\Role\Registry as RoleRegistry; /** * ACL. Can be queried for relations between roles and resources. * * @api * @since 100.0.2 */ class Acl extends \Laminas\Permissions\Acl\Acl { /** * Permission level to deny access */ public const RULE_PERM_DENY = 0; /** * Permission level to inherit access from parent role */ public const RULE_PERM_INHERIT = 1; /** * Permission level to allow access */ public const RULE_PERM_ALLOW = 2; /** * Constructor */ public function __construct() { $this->roleRegistry = new RoleRegistry(); } /** * Add parent to role object * * @param GenericRole $role * @param GenericRole $parent * @return \Magento\Framework\Acl */ public function addRoleParent($role, $parent) { $this->getRoleRegistry()->addParent($role, $parent); return $this; } }