Skip to content

Commit

Permalink
consider not-logged-in case
Browse files Browse the repository at this point in the history
  • Loading branch information
fashxp committed Jun 30, 2020
1 parent 26dacfc commit f3c292a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Customer/DefaultCustomerIdProvider.php
Expand Up @@ -33,6 +33,6 @@ public function getCustomerId(): int
if ($user instanceof AbstractObject) {
return $user->getId();
}
throw new \Exception('No User Logged In or User no Pimcore Object');
return 0;
}
}

0 comments on commit f3c292a

Please sign in to comment.