Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Authorization.php
Go to the documentation of this file.
1 <?php
7 
15 {
20  protected $authorization;
21 
28  {
29  $this->authorization = $authorization;
30  }
31 
39  public function isAllowed($aclResources)
40  {
41  foreach ($aclResources as $resource) {
42  if (!$this->authorization->isAllowed($resource)) {
43  return false;
44  }
45  }
46  return true;
47  }
48 }
$resource
Definition: bulk.php:12
__construct(\Magento\Framework\AuthorizationInterface $authorization)