Skip to content

Commit d9e6833

Browse files
author
Sergii Kovalenko
committed
MAGETWO-60890: Fatal error logging in as admin user with restricted role
1 parent b568e83 commit d9e6833

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Store/App/Config/Type/Scopes.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ public function __construct(
4444
*/
4545
public function get($path = '')
4646
{
47-
if (!$this->data->getData($path) || empty($path)) {
47+
$patchChunks = explode("/", $path);
48+
49+
if (!$this->data->getData($path) || count($patchChunks) == 1) {
4850
$this->data->addData($this->source->get($path));
4951
}
5052

0 commit comments

Comments
 (0)