File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Webapi/Model/Rest/Swagger Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 15
15
use Magento \Webapi \Model \Config \Converter ;
16
16
use Magento \Webapi \Model \Rest \Swagger ;
17
17
use Magento \Webapi \Model \Rest \SwaggerFactory ;
18
+ use Magento \Webapi \Model \ServiceMetadata ;
18
19
19
20
/**
20
21
* REST Swagger schema generator.
@@ -907,8 +908,8 @@ public function getListOfServices()
907
908
{
908
909
$ listOfAllowedServices = [];
909
910
foreach ($ this ->serviceMetadata ->getServicesConfig () as $ serviceName => $ service ) {
910
- foreach ($ service [$ this -> serviceMetadata ::KEY_SERVICE_METHODS ] as $ method ) {
911
- if ($ this ->authorization ->isAllowed ($ method [$ this -> serviceMetadata ::KEY_ACL_RESOURCES ])) {
911
+ foreach ($ service [ServiceMetadata ::KEY_SERVICE_METHODS ] as $ method ) {
912
+ if ($ this ->authorization ->isAllowed ($ method [ServiceMetadata ::KEY_ACL_RESOURCES ])) {
912
913
$ listOfAllowedServices [] = $ serviceName ;
913
914
break ;
914
915
}
You can’t perform that action at this time.
0 commit comments