Definition at line 10 of file Authorization.php.
◆ __construct()
- Parameters
-
\Magento\Framework\Authorization\PolicyInterface | $aclPolicy | |
\Magento\Framework\Authorization\RoleLocatorInterface | $roleLocator | |
Definition at line 30 of file Authorization.php.
34 $this->_aclPolicy = $aclPolicy;
35 $this->_aclRoleLocator = $roleLocator;
◆ isAllowed()
isAllowed |
( |
|
$resource, |
|
|
|
$privilege = null |
|
) |
| |
Check current user permission on resource and privilege
- Parameters
-
string | $resource | |
string | $privilege | |
- Returns
- boolean
Implements AuthorizationInterface.
Definition at line 45 of file Authorization.php.
47 return $this->_aclPolicy->isAllowed($this->_aclRoleLocator->getAclRoleId(),
$resource, $privilege);
◆ $_aclPolicy
◆ $_aclRoleLocator
The documentation for this class was generated from the following file: