We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73404e3 commit 20e9730Copy full SHA for 20e9730
app/code/Magento/CustomerGraphQl/Model/Resolver/Customer/Account/ChangePassword.php
@@ -62,9 +62,9 @@ public function resolve(
62
array $value = null,
63
array $args = null
64
) {
65
- $customerId = (int)$this->userContext->getUserId();
+ $customerId = $this->userContext->getUserId();
66
67
- if ($customerId === 0) {
+ if ($customerId === 0 || $customerId === null) {
68
throw new GraphQlAuthorizationException(
69
__(
70
'Current customer does not have access to the resource "%1"',
0 commit comments