diff --git a/services/formmgr/src/form_mgr_adapter.cpp b/services/formmgr/src/form_mgr_adapter.cpp index bed47a1f7493f60f89b96d73b72aee2a6556fd55..a3e95a0a2d47e78217892e253d3ad4a8e9ec4999 100644 --- a/services/formmgr/src/form_mgr_adapter.cpp +++ b/services/formmgr/src/form_mgr_adapter.cpp @@ -395,8 +395,10 @@ int FormMgrAdapter::UpdateForm(const int64_t formId, } // check then form under current user - if (!FormDataMgr::GetInstance().IsCallingUidValid(formRecord.formUserUids)) { - APP_LOGE("%{public}s error, not under current user, formId:%{public}" PRId64 ".", __func__, matchedFormId); + if (formRecord.userId != DEFAULT_USER_ID && + !FormDataMgr::GetInstance().IsCallingUidValid(formRecord.formUserUids)) { + APP_LOGE("%{public}s error, not under current user, userId:%{public}d formId:%{public}d", + __func__, (int32_t)formRecord.userId, (int32_t)matchedFormId); return ERR_APPEXECFWK_FORM_NOT_EXIST_ID; }