2222use Magento \TwoFactorAuth \Api \UserConfigRequestManagerInterface ;
2323use Magento \TwoFactorAuth \Controller \Adminhtml \Tfa \Requestconfig ;
2424use Magento \TwoFactorAuth \Model \UserConfig \HtmlAreaTokenVerifier ;
25- use Magento \AdminAdobeIms \Service \ImsConfig ;
2625
2726/**
2827 * Handle redirection to 2FA page if required
@@ -76,11 +75,6 @@ class ControllerActionPredispatch implements ObserverInterface
7675 */
7776 private $ userContext ;
7877
79- /**
80- * @var ImsConfig
81- */
82- private ImsConfig $ adminAdobeImsConfig ;
83-
8478 /**
8579 * @param TfaInterface $tfa
8680 * @param TfaSessionInterface $tfaSession
@@ -90,7 +84,6 @@ class ControllerActionPredispatch implements ObserverInterface
9084 * @param UrlInterface $url
9185 * @param AuthorizationInterface $authorization
9286 * @param UserContextInterface $userContext
93- * @param ImsConfig $adminAdobeImsConfig
9487 */
9588 public function __construct (
9689 TfaInterface $ tfa ,
@@ -100,8 +93,7 @@ public function __construct(
10093 ActionFlag $ actionFlag ,
10194 UrlInterface $ url ,
10295 AuthorizationInterface $ authorization ,
103- UserContextInterface $ userContext ,
104- ImsConfig $ adminAdobeImsConfig
96+ UserContextInterface $ userContext
10597 ) {
10698 $ this ->tfa = $ tfa ;
10799 $ this ->tfaSession = $ tfaSession ;
@@ -111,7 +103,6 @@ public function __construct(
111103 $ this ->url = $ url ;
112104 $ this ->authorization = $ authorization ;
113105 $ this ->userContext = $ userContext ;
114- $ this ->adminAdobeImsConfig = $ adminAdobeImsConfig ;
115106 }
116107
117108 /**
@@ -132,9 +123,6 @@ private function redirect(string $url): void
132123 */
133124 public function execute (Observer $ observer )
134125 {
135- if ($ this ->adminAdobeImsConfig ->enabled ()) {
136- return ;
137- }
138126 /** @var $controllerAction AbstractAction */
139127 $ controllerAction = $ observer ->getEvent ()->getData ('controller_action ' );
140128 $ this ->action = $ controllerAction ;
0 commit comments