Skip to content

Commit 12d5837

Browse files
committed
MC-18702: Error when viewing CMS page grid with restricted user account
1 parent 446735c commit 12d5837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Cms/ViewModel/Page/Grid/UrlBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private function prepareRequestQuery(string $store, string $href) : array
103103
StoreManagerInterface::PARAM_NAME => $store,
104104
ActionInterface::PARAM_NAME_URL_ENCODED => $this->urlEncoder->encode($href)
105105
];
106-
if ($storeView->getCode() !== $store) {
106+
if (null !== $storeView && $storeView->getCode() !== $store) {
107107
$query['___from_store'] = $storeView->getCode();
108108
}
109109

0 commit comments

Comments
 (0)