|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| isAllowed ($resource, $privilege=null) | |
Public Member Functions inherited from Authorization | |
| __construct (\Magento\Framework\Authorization\PolicyInterface $aclPolicy, \Magento\Framework\Authorization\RoleLocatorInterface $roleLocator) | |
| isAllowed ($resource, $privilege=null) | |
Additional Inherited Members | |
Protected Attributes inherited from Authorization | |
| $_aclPolicy | |
| $_aclRoleLocator | |
Class AuthorizationMock
Definition at line 13 of file AuthorizationMock.php.
| isAllowed | ( | $resource, | |
$privilege = null |
|||
| ) |
Check current user permission on resource and privilege
| string | $resource | |
| string | $privilege |
Implements AuthorizationInterface.
Definition at line 23 of file AuthorizationMock.php.