Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GuestAuthorization.php
Go to the documentation of this file.
1 <?php
8 
10 
17 {
29  public function aroundIsAllowed(
30  \Magento\Framework\Authorization $subject,
31  \Closure $proceed,
32  $resource,
33  $privilege = null
34  ) {
35  if ($resource == AuthorizationService::PERMISSION_ANONYMOUS) {
36  return true;
37  } else {
38  return $proceed($resource, $privilege);
39  }
40  }
41 }
$resource
Definition: bulk.php:12
aroundIsAllowed(\Magento\Framework\Authorization $subject, \Closure $proceed, $resource, $privilege=null)