File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2020use Magento \TwoFactorAuth \Api \TfaInterface ;
2121use Magento \TwoFactorAuth \Api \TfaSessionInterface ;
2222use Magento \TwoFactorAuth \Api \UserConfigRequestManagerInterface ;
23+ use Magento \TwoFactorAuth \Controller \Adminhtml \Tfa \Requestconfig ;
2324use Magento \TwoFactorAuth \Model \UserConfig \HtmlAreaTokenVerifier ;
2425
2526/**
@@ -145,7 +146,7 @@ public function execute(Observer $observer)
145146
146147 if (!$ accessGranted && $ configurationStillRequired ) {
147148 //User needs special link with a token to be allowed to configure 2FA
148- if ($ this ->authorization ->isAllowed (Configure ::ADMIN_RESOURCE )) {
149+ if ($ this ->authorization ->isAllowed (Requestconfig ::ADMIN_RESOURCE )) {
149150 $ this ->redirect ('tfa/tfa/requestconfig ' );
150151 } else {
151152 $ this ->redirect ('tfa/tfa/accessdenied ' );
You can’t perform that action at this time.
0 commit comments