diff --git a/services/edm/src/enterprise_device_mgr_ability.cpp b/services/edm/src/enterprise_device_mgr_ability.cpp index 96dd8c57f5764232e9a5898ae5292d633a4addaf..7e49e45e9b2a283b2b35adf81176f41f51f9019e 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; }