authorization = $authorization; } /** * Check if all ACL resources are allowed to be accessed by current API user. * * @param string[] $aclResources * @return bool * @since 100.1.0 */ public function isAllowed($aclResources) { foreach ($aclResources as $resource) { if (!$this->authorization->isAllowed($resource)) { return false; } } return true; } }