File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
app/code/Magento/AdminAdobeIms/Service Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ public function getCertificateUrl(string $fileName): string
387
387
public function getOrganizationMembershipUrl (string $ orgId ): string
388
388
{
389
389
return str_replace (
390
- ['#{orgId } ' ],
390
+ ['#{org_id } ' ],
391
391
[$ orgId ],
392
392
$ this ->scopeConfig ->getValue (self ::XML_PATH_ORGANIZATION_MEMBERSHIP_URL )
393
393
);
Original file line number Diff line number Diff line change @@ -59,10 +59,8 @@ public function checkOrganizationMembership(string $access_token): void
59
59
$ curl ->addHeader ('cache-control ' , 'no-cache ' );
60
60
$ curl ->addHeader ('Authorization ' , 'Bearer ' . $ access_token );
61
61
62
- $ curl ->get (
63
- $ this ->adminImsConfig ->getOrganizationMembershipUrl ($ configuredOrganizationId ),
64
- []
65
- );
62
+ $ orgCheckUrl = $ this ->adminImsConfig ->getOrganizationMembershipUrl ($ configuredOrganizationId );
63
+ $ curl ->get ($ orgCheckUrl );
66
64
67
65
if ($ curl ->getBody () === '' ) {
68
66
throw new AdobeImsOrganizationAuthorizationException (
You can’t perform that action at this time.
0 commit comments