Skip to content

Commit c8670b2

Browse files
author
OlgaVasyltsun
committed
MAGETWO-96690: Incorrect Rss Wishlist response
1 parent d2dc36e commit c8670b2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/code/Magento/Wishlist/Model/Rss/Wishlist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ public function __construct(
115115
*/
116116
public function isAllowed()
117117
{
118-
return (bool)$this->scopeConfig->getValue('rss/wishlist/active', ScopeInterface::SCOPE_STORE)
119-
&& $this->getWishlist()->getCustomerId() === $this->wishlistHelper->getCustomer()->getId();
118+
return (bool)$this->scopeConfig->isSetFlag('rss/wishlist/active', ScopeInterface::SCOPE_STORE)
119+
&& $this->getWishlist()->getCustomerId() == $this->wishlistHelper->getCustomer()->getId();
120120
}
121121

122122
/**

dev/tests/integration/testsuite/Magento/Customer/_files/two_customers_rollback.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
$customer = $customerRepository->get('customer_two@example.com');
2323
$customerRepository->delete($customer);
2424
} catch (NoSuchEntityException $e) {
25-
/**
26-
* Tests which are wrapped with MySQL transaction clear all data by transaction rollback.
27-
*/
25+
/** Tests which are wrapped with MySQL transaction clear all data by transaction rollback. */
2826
}
2927

3028
$registry->unregister('isSecureArea');

0 commit comments

Comments
 (0)