22
22
use Magento \TwoFactorAuth \Api \UserConfigRequestManagerInterface ;
23
23
use Magento \TwoFactorAuth \Controller \Adminhtml \Tfa \Requestconfig ;
24
24
use Magento \TwoFactorAuth \Model \UserConfig \HtmlAreaTokenVerifier ;
25
- use Magento \AdminAdobeIms \Service \ImsConfig ;
26
25
27
26
/**
28
27
* Handle redirection to 2FA page if required
@@ -76,11 +75,6 @@ class ControllerActionPredispatch implements ObserverInterface
76
75
*/
77
76
private $ userContext ;
78
77
79
- /**
80
- * @var ImsConfig
81
- */
82
- private ImsConfig $ adminAdobeImsConfig ;
83
-
84
78
/**
85
79
* @param TfaInterface $tfa
86
80
* @param TfaSessionInterface $tfaSession
@@ -90,7 +84,6 @@ class ControllerActionPredispatch implements ObserverInterface
90
84
* @param UrlInterface $url
91
85
* @param AuthorizationInterface $authorization
92
86
* @param UserContextInterface $userContext
93
- * @param ImsConfig $adminAdobeImsConfig
94
87
*/
95
88
public function __construct (
96
89
TfaInterface $ tfa ,
@@ -100,8 +93,7 @@ public function __construct(
100
93
ActionFlag $ actionFlag ,
101
94
UrlInterface $ url ,
102
95
AuthorizationInterface $ authorization ,
103
- UserContextInterface $ userContext ,
104
- ImsConfig $ adminAdobeImsConfig
96
+ UserContextInterface $ userContext
105
97
) {
106
98
$ this ->tfa = $ tfa ;
107
99
$ this ->tfaSession = $ tfaSession ;
@@ -111,7 +103,6 @@ public function __construct(
111
103
$ this ->url = $ url ;
112
104
$ this ->authorization = $ authorization ;
113
105
$ this ->userContext = $ userContext ;
114
- $ this ->adminAdobeImsConfig = $ adminAdobeImsConfig ;
115
106
}
116
107
117
108
/**
@@ -132,9 +123,6 @@ private function redirect(string $url): void
132
123
*/
133
124
public function execute (Observer $ observer )
134
125
{
135
- if ($ this ->adminAdobeImsConfig ->enabled ()) {
136
- return ;
137
- }
138
126
/** @var $controllerAction AbstractAction */
139
127
$ controllerAction = $ observer ->getEvent ()->getData ('controller_action ' );
140
128
$ this ->action = $ controllerAction ;
0 commit comments