Skip to content

Commit 349fd4b

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

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
@@ -66,7 +66,7 @@ public function execute()
6666
$stores = $this->storeManager->getStores();
6767
if (count($stores)) {
6868
$store = reset($stores);
69-
$categoryId = (int)$this->storeManager->getStore($store->getId())->getRootCategoryId();
69+
$categoryId = (int)$store->getRootCategoryId();
7070
}
7171
}
7272
}

0 commit comments

Comments
 (0)