We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba3035e commit d5c1337Copy full SHA for d5c1337
1 file changed
src/Spryker/Glue/CustomersRestApi/Processor/Customer/CustomerWriter.php
@@ -216,8 +216,8 @@ public function updateCustomerPassword(
216
return $this->restApiError->addCustomerNotFoundError($restResponse);
217
}
218
219
- if ($restRequest->getResource()->getId()
220
- && $restRequest->getResource()->getId() !== $restRequest->getUser()->getNaturalIdentifier()) {
+ $resourceId = $restRequest->getResource()->getId();
+ if ($resourceId && $resourceId !== $restRequest->getUser()->getNaturalIdentifier()) {
221
return $this->restApiError->addCustomerUnauthorizedError($restResponse);
222
223
0 commit comments