Skip to content

Commit 480dc76

Browse files
MAGETWO-91688: Exception when login as restricted admin with access only to CMS Block
- Fix unit and static tests.
1 parent 851ffe0 commit 480dc76

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/code/Magento/Cms/Test/Unit/Ui/Component/Listing/DataProviderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ public function testPrepareMetadata()
118118
'config' => [
119119
'editorConfig' => [
120120
'enabled' => false
121-
]
121+
],
122+
'componentType' => \Magento\Ui\Component\Container::NAME
122123
]
123124
]
124125
]

app/code/Magento/Cms/Ui/Component/DataProvider.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
use Magento\Framework\AuthorizationInterface;
1414
use Magento\Framework\View\Element\UiComponent\DataProvider\Reporting;
1515

16+
/**
17+
* DataProvider for cms ui.
18+
*/
1619
class DataProvider extends \Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider
1720
{
1821
/**
@@ -67,6 +70,8 @@ public function __construct(
6770
}
6871

6972
/**
73+
* Get authorization info.
74+
*
7075
* @deprecated 101.0.7
7176
* @return AuthorizationInterface|mixed
7277
*/

0 commit comments

Comments
 (0)