diff --git a/commondependency/include/deviceprofile_connector.h b/commondependency/include/deviceprofile_connector.h index 1a09d336607f70492e97a9da0614bd59d60e4a95..5bd29fa0c9bca351d6d4764bf172df55b2e71323 100644 --- a/commondependency/include/deviceprofile_connector.h +++ b/commondependency/include/deviceprofile_connector.h @@ -165,7 +165,7 @@ public: DM_EXPORT int32_t PutAccessControlList(DmAclInfo aclInfo, DmAccesser dmAccesser, DmAccessee dmAccessee); int32_t UpdateAccessControlList(int32_t userId, std::string &oldAccountId, std::string &newAccountId); - void UpdateAccessControlList(const DistributedDeviceProfile::AccessControlProfile &profile); + DM_EXPORT void UpdateAclStatus(const DistributedDeviceProfile::AccessControlProfile &profile); DM_EXPORT std::unordered_map GetAppTrustDeviceList( const std::string &pkgName, const std::string &deviceId); DM_EXPORT std::vector GetBindTypeByPkgName(std::string pkgName, diff --git a/commondependency/src/deviceprofile_connector.cpp b/commondependency/src/deviceprofile_connector.cpp index 4fc2a22986344921f7ee8ff6d397440f062b60c1..cf201681d3d627290066e76021cb994d06ad626d 100644 --- a/commondependency/src/deviceprofile_connector.cpp +++ b/commondependency/src/deviceprofile_connector.cpp @@ -1589,7 +1589,7 @@ void DeviceProfileConnector::DeleteServiceBindLevel(DmOfflineParam &offlineParam offlineParam.leftAclNumber = bindNums - deleteNums; } -void DeviceProfileConnector::UpdateAccessControlList(const DistributedDeviceProfile::AccessControlProfile &profile) +DM_EXPORT void DeviceProfileConnector::UpdateAclStatus(const DistributedDeviceProfile::AccessControlProfile &profile) { DistributedDeviceProfileClient::GetInstance().UpdateAccessControlProfile(profile); } diff --git a/services/implementation/src/authentication_v2/dm_auth_state.cpp b/services/implementation/src/authentication_v2/dm_auth_state.cpp index 8b94f9c7e2dbeb6af0243d686772b6b3a367f04f..5d5698a4d7c11c18c0e6b6d9b0d767bf056e6892 100644 --- a/services/implementation/src/authentication_v2/dm_auth_state.cpp +++ b/services/implementation/src/authentication_v2/dm_auth_state.cpp @@ -621,7 +621,7 @@ void DmAuthState::FilterProfilesByContext( context->accesser.userId == item.GetAccessee().GetAccesseeUserId())) { if (item.GetStatus() == INACTIVE) { item.SetStatus(ACTIVE); - DeviceProfileConnector::GetInstance().UpdateAccessControlList(item); + DeviceProfileConnector::GetInstance().UpdateAclStatus(item); } aclProfilesVec.push_back(item); }