From f5b5cded4d66ec73c21919c6f913b3c649f18112 Mon Sep 17 00:00:00 2001 From: zoulianfeng Date: Fri, 27 Oct 2023 14:33:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E7=BA=A7=E5=AE=89=E5=85=A8=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E6=94=AF=E6=8C=81sda=E7=9A=84=E6=BF=80=E6=B4=BB?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E6=94=AF=E6=8C=81da=E7=9A=84=E6=BF=80?= =?UTF-8?q?=E6=B4=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zoulianfeng --- services/edm/src/enterprise_device_mgr_ability.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/edm/src/enterprise_device_mgr_ability.cpp b/services/edm/src/enterprise_device_mgr_ability.cpp index 96dd8c57f..7e49e45e9 100644 --- a/services/edm/src/enterprise_device_mgr_ability.cpp +++ b/services/edm/src/enterprise_device_mgr_ability.cpp @@ -454,8 +454,7 @@ ErrCode EnterpriseDeviceMgrAbility::VerifyEnableAdminCondition(AppExecFwk::Eleme return ERR_EDM_ADD_ADMIN_FAILED; } - bool securityMode = system::GetBoolParameter(PARAM_SECURITY_MODE, false); - if (securityMode) { + if (type != AdminType::ENT && system::GetBoolParameter(PARAM_SECURITY_MODE, false)) { EDMLOGW("EnableAdmin: The current mode is not supported."); return ERR_EDM_ADD_ADMIN_FAILED; } -- Gitee