@@ -46,11 +46,6 @@ class SaveRole extends \Magento\User\Controller\Adminhtml\User\Role
46
46
*/
47
47
protected $ securityCookieHelper ;
48
48
49
- /**
50
- * @var \Magento\Backend\Model\Auth\Session
51
- */
52
- protected $ backendAuthSession ;
53
-
54
49
/**
55
50
* @param \Magento\Backend\App\Action\Context $context
56
51
* @param \Magento\Framework\Registry $coreRegistry
@@ -60,7 +55,6 @@ class SaveRole extends \Magento\User\Controller\Adminhtml\User\Role
60
55
* @param \Magento\Backend\Model\Auth\Session $authSession
61
56
* @param \Magento\Framework\Filter\FilterManager $filterManager
62
57
* @param \Magento\Security\Helper\SecurityCookie $securityCookieHelper
63
- * @param \Magento\Backend\Model\Auth\Session $backendAuthSession
64
58
*/
65
59
public function __construct (
66
60
\Magento \Backend \App \Action \Context $ context ,
@@ -70,8 +64,7 @@ public function __construct(
70
64
\Magento \Authorization \Model \RulesFactory $ rulesFactory ,
71
65
\Magento \Backend \Model \Auth \Session $ authSession ,
72
66
\Magento \Framework \Filter \FilterManager $ filterManager ,
73
- \Magento \Security \Helper \SecurityCookie $ securityCookieHelper ,
74
- \Magento \Backend \Model \Auth \Session $ backendAuthSession
67
+ \Magento \Security \Helper \SecurityCookie $ securityCookieHelper
75
68
) {
76
69
parent ::__construct (
77
70
$ context ,
@@ -83,7 +76,6 @@ public function __construct(
83
76
$ filterManager
84
77
);
85
78
$ this ->securityCookieHelper = $ securityCookieHelper ;
86
- $ this ->backendAuthSession = $ backendAuthSession ;
87
79
}
88
80
89
81
/**
@@ -166,7 +158,7 @@ protected function validateUser()
166
158
$ password = $ this ->getRequest ()->getParam (
167
159
\Magento \User \Block \Role \Tab \Info::IDENTITY_VERIFICATION_PASSWORD_FIELD
168
160
);
169
- $ user = $ this ->backendAuthSession ->getUser ();
161
+ $ user = $ this ->_authSession ->getUser ();
170
162
$ user ->performIdentityCheck ($ password );
171
163
172
164
return $ this ;
0 commit comments