File tree Expand file tree Collapse file tree 5 files changed +30
-26
lines changed
dev/tests/static/testsuite/Magento/Test/Integrity/Magento/Backend/_files Expand file tree Collapse file tree 5 files changed +30
-26
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ *
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ namespace Magento \Backend \Controller \Adminhtml \Denied ;
8
+
9
+ use Magento \Backend \Controller \Adminhtml \Denied ;
10
+ use Magento \Framework \App \Action \HttpGetActionInterface as HttpGet ;
11
+ use Magento \Framework \App \Action \HttpPostActionInterface as HttpPost ;
12
+
13
+ /**
14
+ * Denied Action
15
+ */
16
+ class Index extends Denied implements HttpGet, HttpPost
17
+ {
18
+
19
+ /**
20
+ * Check if user has permissions to access this controller
21
+ *
22
+ * @return bool
23
+ */
24
+ protected function _isAllowed ()
25
+ {
26
+ return true ;
27
+ }
28
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ public function findFirstAvailableMenu()
349
349
if ($ user ) {
350
350
$ user ->setHasAvailableResources (false );
351
351
}
352
- $ action = '*/*/ denied ' ;
352
+ $ action = '*/denied ' ;
353
353
}
354
354
return $ action ;
355
355
}
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ public function testFindFirstAvailableMenuDenied()
190
190
191
191
$ this ->_menuMock ->expects ($ this ->any ())->method ('getFirstAvailableChild ' )->will ($ this ->returnValue (null ));
192
192
193
- $ this ->assertEquals ('*/*/ denied ' , $ this ->_model ->findFirstAvailableMenu ());
193
+ $ this ->assertEquals ('*/denied ' , $ this ->_model ->findFirstAvailableMenu ());
194
194
}
195
195
196
196
public function testFindFirstAvailableMenu ()
Original file line number Diff line number Diff line change 1
1
Magento\Security\Controller\Adminhtml\Session\Activity
2
2
Magento\Security\Controller\Adminhtml\Session\LogoutAll
3
3
Magento\Backend\Controller\Adminhtml\Denied
4
- Magento\Backend\Controller\Adminhtml\Index\Denied
5
4
Magento\Backend\Controller\Adminhtml\Noroute\Index
6
5
Magento\Directory\Controller\Adminhtml\Json\CountryRegion
7
6
Magento\Tax\Controller\Adminhtml\Rule\AjaxLoadRates
You can’t perform that action at this time.
0 commit comments