From 3f9be280e4124d8344e298522d6603085d3f69fc Mon Sep 17 00:00:00 2001 From: q30043944 Date: Sat, 23 Aug 2025 17:07:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=93=9D=E9=BB=84=E4=BB=A3=E7=A0=81=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: q30043944 --- commondependency/include/deviceprofile_connector.h | 2 +- commondependency/src/deviceprofile_connector.cpp | 2 +- services/implementation/src/authentication_v2/dm_auth_state.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commondependency/include/deviceprofile_connector.h b/commondependency/include/deviceprofile_connector.h index 1a09d3366..5bd29fa0c 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 4fc2a2298..cf201681d 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 8b94f9c7e..5d5698a4d 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); } -- Gitee