From 68b1e3c29be13848948687251b85c866b398b97b Mon Sep 17 00:00:00 2001 From: Andrey Zvonov Date: Thu, 19 Sep 2024 17:22:38 +0000 Subject: [PATCH] fix function, not calls --- src/Access/LDAPAccessStorage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Access/LDAPAccessStorage.cpp b/src/Access/LDAPAccessStorage.cpp index b56bec819a5..96bd505e104 100644 --- a/src/Access/LDAPAccessStorage.cpp +++ b/src/Access/LDAPAccessStorage.cpp @@ -128,7 +128,7 @@ void LDAPAccessStorage::processRoleChange(const UUID & id, const AccessEntityPtr { if (it != granted_role_names.end()) // Removed a granted role. { - const auto old_role_name = it->second; + const auto & old_role_name = it->second; applyRoleChangeNoLock(false /* revoke */, id, old_role_name); } } @@ -191,8 +191,8 @@ void LDAPAccessStorage::applyRoleChangeNoLock(bool grant, const UUID & role_id, } else { - granted_role_names.erase(role_id); granted_role_ids.erase(role_name); + granted_role_names.erase(role_id); } }