From dc3aa5e12f4b4d107a95a2c146c6ec39e045bd71 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 24 Apr 2024 06:30:32 +0545 Subject: [PATCH] revert --- app/controllers/shared/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index cc480e391d..a5ffda3ca8 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -281,7 +281,7 @@ App::init() throw new Exception(Exception::USER_PASSWORD_RESET_REQUIRED); } - if ($mode !== APP_MODE_ADMIN && !Auth::isPrivilegedUser(Authorization::getRoles())) { + if ($mode !== APP_MODE_ADMIN) { $mfaEnabled = $user->getAttribute('mfa', false); $hasVerifiedEmail = $user->getAttribute('emailVerification', false); $hasVerifiedPhone = $user->getAttribute('phoneVerification', false);