Skip to content

Commit 8cf6be7

Browse files
committed
CABPI-324: Change Org check to use new endpoint
1 parent eeb2f84 commit 8cf6be7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/AdminAdobeIms/Model/ImsConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
namespace Magento\AdminAdobeIms\Model;
1010

1111
use Magento\AdminAdobeIms\Exception\AdobeImsAuthorizationException;
12+
use Magento\AdminAdobeIms\Exception\AdobeImsOrganizationAuthorizationException;
1213
use Magento\AdminAdobeIms\Logger\AdminAdobeImsLogger;
1314
use Magento\AdminAdobeIms\Service\ImsConfig;
1415
use Magento\AdobeIms\Model\GetToken;
@@ -19,7 +20,6 @@
1920
use Magento\Framework\HTTP\Client\Curl;
2021
use Magento\Framework\HTTP\Client\CurlFactory;
2122
use Magento\Framework\Serialize\Serializer\Json;
22-
use mysql_xdevapi\Exception;
2323

2424
class ImsConnection
2525
{

app/code/Magento/AdminAdobeIms/Service/ImsOrganizationService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ public function __construct(
3939
* Check if user is a member of Adobe Organization
4040
*
4141
* @param string $access_token
42-
* @return bool
42+
* @return void
4343
* @throws AdobeImsOrganizationAuthorizationException
4444
*/
45-
public function checkOrganizationMembership(string $access_token): bool
45+
public function checkOrganizationMembership(string $access_token): void
4646
{
4747
$configuredOrganization = $this->adminImsConfig->getOrganizationId();
4848

0 commit comments

Comments
 (0)