Skip to content

Commit 81d04af

Browse files
committed
MAGETWO-93990: Admin user with permissions for 1 website should not be able to view the All Store Views scope on a product
- Added store id to product link on product grid page if user has restricted access to product
1 parent 5a04525 commit 81d04af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ protected function doAddWebsiteNamesToResult()
818818
foreach ($this as $product) {
819819
if (isset($productWebsites[$product->getId()])) {
820820
$product->setData('websites', $productWebsites[$product->getId()]);
821+
$product->setData('website_ids', $productWebsites[$product->getId()]);
821822
}
822823
}
823824
return $this;

0 commit comments

Comments
 (0)