From 62b2ff628e3db1dce834c46b7af8bf4f2df6d455 Mon Sep 17 00:00:00 2001 From: Yireo Date: Wed, 6 Jul 2016 15:52:37 +0200 Subject: [PATCH] Allowing Web API listing to be public Recent changes removed non-anonymous webservice methods from the generated WSDL listing. This is incorrect. The WSDL listing should always include both public (anonymous) methods and non-public (ACL-protected) methods. This simply removal of lines fixes this. Also see this https://github.com/magento/magento2/issues/5330 --- app/code/Magento/Webapi/Model/AbstractSchemaGenerator.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/code/Magento/Webapi/Model/AbstractSchemaGenerator.php b/app/code/Magento/Webapi/Model/AbstractSchemaGenerator.php index c496b3c2a8c0c..d8662898b01a5 100644 --- a/app/code/Magento/Webapi/Model/AbstractSchemaGenerator.php +++ b/app/code/Magento/Webapi/Model/AbstractSchemaGenerator.php @@ -74,10 +74,8 @@ public function getListOfServices() $listOfAllowedServices = []; foreach ($this->serviceMetadata->getServicesConfig() as $serviceName => $service) { foreach ($service[ServiceMetadata::KEY_SERVICE_METHODS] as $method) { - if ($this->authorization->isAllowed($method[ServiceMetadata::KEY_ACL_RESOURCES])) { - $listOfAllowedServices[] = $serviceName; - break; - } + $listOfAllowedServices[] = $serviceName; + break; } } return $listOfAllowedServices;