diff --git a/frameworks/aafwk/src/accessible_ability_client_impl.cpp b/frameworks/aafwk/src/accessible_ability_client_impl.cpp index 65301ac78badfd03f83c989effe5fa2cf77ccf09..84848d51d4f7ea4707b1c052b9bee6ddba7e1b4f 100644 --- a/frameworks/aafwk/src/accessible_ability_client_impl.cpp +++ b/frameworks/aafwk/src/accessible_ability_client_impl.cpp @@ -894,6 +894,9 @@ RetError AccessibleAbilityClientImpl::GetChildrenWork(const int32_t windowId, st } RetError ret = SearchElementInfoFromAce(windowId, childId, cacheMode_, child, systemApi); if (ret != RET_OK) { + if (ret == RET_ERR_NO_PERMISSION) { + return ret; + } HILOG_ERROR("Get element info from ace failed"); continue; }