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()
349349 if ($ user ) {
350350 $ user ->setHasAvailableResources (false );
351351 }
352- $ action = '*/*/ denied ' ;
352+ $ action = '*/denied ' ;
353353 }
354354 return $ action ;
355355 }
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ public function testFindFirstAvailableMenuDenied()
190190
191191 $ this ->_menuMock ->expects ($ this ->any ())->method ('getFirstAvailableChild ' )->will ($ this ->returnValue (null ));
192192
193- $ this ->assertEquals ('*/*/ denied ' , $ this ->_model ->findFirstAvailableMenu ());
193+ $ this ->assertEquals ('*/denied ' , $ this ->_model ->findFirstAvailableMenu ());
194194 }
195195
196196 public function testFindFirstAvailableMenu ()
Original file line number Diff line number Diff line change 11Magento\Security\Controller\Adminhtml\Session\Activity
22Magento\Security\Controller\Adminhtml\Session\LogoutAll
33Magento\Backend\Controller\Adminhtml\Denied
4- Magento\Backend\Controller\Adminhtml\Index\Denied
54Magento\Backend\Controller\Adminhtml\Noroute\Index
65Magento\Directory\Controller\Adminhtml\Json\CountryRegion
76Magento\Tax\Controller\Adminhtml\Rule\AjaxLoadRates
You can’t perform that action at this time.
0 commit comments