Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-webapi
Model
Plugin
GuestAuthorization.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Webapi\Model\Plugin
;
8
9
use
Magento\Integration\Api\AuthorizationServiceInterface
as AuthorizationService;
10
16
class
GuestAuthorization
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
}
Magento\Framework\Webapi\Authorization
Definition:
Authorization.php:14
$resource
$resource
Definition:
bulk.php:12
Magento\Integration\Api\AuthorizationServiceInterface
Definition:
AuthorizationServiceInterface.php:17
Magento\Webapi\Model\Plugin\GuestAuthorization\aroundIsAllowed
aroundIsAllowed(\Magento\Framework\Authorization $subject, \Closure $proceed, $resource, $privilege=null)
Definition:
GuestAuthorization.php:29
Magento\Webapi\Model\Plugin
Magento
Magento\Webapi\Model\Plugin\GuestAuthorization
Definition:
GuestAuthorization.php:16