Skip to content

Commit

Permalink
Merge pull request #227 from PrestaShopCorp/feat/rename-V4-old-func
Browse files Browse the repository at this point in the history
chores: rename old V4 func
  • Loading branch information
atourneriePresta authored Nov 9, 2021
2 parents fd48f8d + ce87120 commit 6c99beb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Presenter/PsAccountsPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function present($psxName = 'ps_accounts')

// FIXME : Mix "SSO user" with "Backend user"
'user' => [
'uuid' => $this->psAccountsService->getUserUuidV4() ?: null,
'uuid' => $this->psAccountsService->getUserUuid() ?: null,
'email' => $this->psAccountsService->getEmail() ?: null,
'emailIsValidated' => $this->psAccountsService->isEmailValidated(),
'isSuperAdmin' => $shopContext->getContext()->employee->isSuperAdmin(),
Expand Down
10 changes: 10 additions & 0 deletions classes/Service/PsAccountsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,19 @@ public function getToken()
}

/**
* @deprecated deprecated since version 5.1.1
*
* @return string|false
*/
public function getUserUuidV4()
{
return $this->getUserUuid();
}

/**
* @return string|false
*/
public function getUserUuid()
{
return $this->userTokenRepository->getTokenUuid();
}
Expand Down

0 comments on commit 6c99beb

Please sign in to comment.