Skip to content

Commit 2cb64b5

Browse files
committed
MAGETWO-47746: Cannot open categories if admin user does not have access to default website
1 parent 319feb7 commit 2cb64b5

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Category

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Category/Edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function execute()
6161
} else {
6262
$defaultStoreView = $this->storeManager->getDefaultStoreView();
6363
if ($defaultStoreView) {
64-
$categoryId = (int)$this->storeManager->getDefaultStoreView()->getRootCategoryId();
64+
$categoryId = (int)$defaultStoreView->getRootCategoryId();
6565
} else {
6666
$stores = $this->storeManager->getStores();
6767
if (count($stores)) {

0 commit comments

Comments
 (0)