-
Notifications
You must be signed in to change notification settings - Fork 9.4k
magento/magento2#26089: Customer Sharing Options not respected in REST API. #28213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
magento/magento2#26089: Customer Sharing Options not respected in REST API. #28213
Conversation
Hi @p-bystritsky. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
return true; | ||
} else { | ||
return $proceed($resource, $privilege); | ||
$customer = $this->customerFactory->create()->load($this->userContext->getUserId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The customerFactory
will return the customer ORM model. Considering this fact, we are calling the deprecated load
method in order to retrieve the customer entity.
I would suggest avoiding this approach and use the corresponding resource model for loading the entity instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rogyar updated
@magento run all tests |
Hi @rogyar, thank you for the review. |
@magento run all tests |
@magento run all tests |
893188f
to
bdc2cce
Compare
@magento run all tests |
bdc2cce
to
ce359e0
Compare
@magento run all tests |
Hi @p-bystritsky, thank you for your contribution! |
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)