File tree Expand file tree Collapse file tree 4 files changed +20
-40
lines changed
app/code/Magento/LoginAsCustomer/Controller/Adminhtml/Login Expand file tree Collapse file tree 4 files changed +20
-40
lines changed Original file line number Diff line number Diff line change 11
11
*/
12
12
class Grid extends \Magento \Backend \App \Action
13
13
{
14
+ /**
15
+ * Authorization level of a basic admin session
16
+ */
17
+ const ADMIN_RESOURCE = 'Magento_LoginAsCustomer::login_log ' ;
18
+
14
19
/**
15
20
* Login as customer log grid
16
21
*
@@ -21,14 +26,4 @@ public function execute()
21
26
$ this ->_view ->loadLayout (false );
22
27
$ this ->_view ->renderLayout ();
23
28
}
24
-
25
- /**
26
- * Check is allowed access
27
- *
28
- * @return bool
29
- */
30
- protected function _isAllowed ()
31
- {
32
- return $ this ->_authorization ->isAllowed ('Magento_LoginAsCustomer::login_log ' );
33
- }
34
29
}
Original file line number Diff line number Diff line change 11
11
*/
12
12
class Index extends \Magento \Backend \App \Action
13
13
{
14
+ /**
15
+ * Authorization level of a basic admin session
16
+ */
17
+ const ADMIN_RESOURCE = 'Magento_LoginAsCustomer::login_log ' ;
18
+
14
19
/**
15
20
* @var \Magento\LoginAsCustomer\Model\Login
16
21
*/
@@ -49,14 +54,4 @@ public function execute()
49
54
$ this ->_addBreadcrumb ($ title , $ title );
50
55
$ this ->_view ->renderLayout ();
51
56
}
52
-
53
- /**
54
- * Check is allowed access
55
- *
56
- * @return bool
57
- */
58
- protected function _isAllowed ()
59
- {
60
- return $ this ->_authorization ->isAllowed ('Magento_LoginAsCustomer::login_log ' );
61
- }
62
57
}
Original file line number Diff line number Diff line change 12
12
*/
13
13
class Login extends \Magento \Backend \App \Action
14
14
{
15
+ /**
16
+ * Authorization level of a basic admin session
17
+ */
18
+ const ADMIN_RESOURCE = 'Magento_LoginAsCustomer::login_button ' ;
19
+
15
20
/**
16
21
* @var \Magento\LoginAsCustomer\Model\Login
17
22
*/
@@ -114,14 +119,4 @@ public function execute()
114
119
115
120
$ this ->getResponse ()->setRedirect ($ redirectUrl );
116
121
}
117
-
118
- /**
119
- * Check is allowed access
120
- *
121
- * @return bool
122
- */
123
- protected function _isAllowed ()
124
- {
125
- return $ this ->_authorization ->isAllowed ('Magento_LoginAsCustomer::login_button ' );
126
- }
127
122
}
Original file line number Diff line number Diff line change 12
12
*/
13
13
class Manual extends \Magento \Backend \App \Action
14
14
{
15
+ /**
16
+ * Authorization level of a basic admin session
17
+ */
18
+ const ADMIN_RESOURCE = 'Magento_LoginAsCustomer::login_button ' ;
19
+
15
20
/**
16
21
* @return \Magento\Framework\App\ResponseInterface|\Magento\Framework\Controller\ResultInterface|void
17
22
*/
@@ -24,14 +29,4 @@ public function execute()
24
29
$ this ->_addBreadcrumb ($ title , $ title );
25
30
$ this ->_view ->renderLayout ();
26
31
}
27
-
28
- /**
29
- * Check is allowed access
30
- *
31
- * @return bool
32
- */
33
- protected function _isAllowed ()
34
- {
35
- return $ this ->_authorization ->isAllowed ('Magento_LoginAsCustomer::login_button ' );
36
- }
37
32
}
You can’t perform that action at this time.
0 commit comments