From 5ca78dff9e268a256b0531a81f2b5665f556984b Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 4 Oct 2024 10:00:17 -0400 Subject: [PATCH] Renamed based on code review feedback --- src/app/InteractionModelEngine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/InteractionModelEngine.cpp b/src/app/InteractionModelEngine.cpp index 869902a5bb937a..95ef3c92fb5d5c 100644 --- a/src/app/InteractionModelEngine.cpp +++ b/src/app/InteractionModelEngine.cpp @@ -1716,11 +1716,11 @@ Protocols::InteractionModel::Status InteractionModelEngine::CommandCheckACL(cons // This is checked by previous validations, so it should not happen VerifyOrReturnValue(commandInfo.has_value(), Status::UnsupportedCommand); - Access::Privilege requestPrivilege = commandInfo->invokePrivilege; + Access::Privilege minimumRequiredPrivilege = commandInfo->invokePrivilege; #else - Access::Privilege requestPrivilege = RequiredPrivilege::ForInvokeCommand(aRequest.path); + Access::Privilege minimumRequiredPrivilege = RequiredPrivilege::ForInvokeCommand(aRequest.path); #endif - CHIP_ERROR err = Access::GetAccessControl().Check(*aRequest.subjectDescriptor, requestPath, requestPrivilege); + CHIP_ERROR err = Access::GetAccessControl().Check(*aRequest.subjectDescriptor, requestPath, minimumRequiredPrivilege); if (err != CHIP_NO_ERROR) { if ((err != CHIP_ERROR_ACCESS_DENIED) && (err != CHIP_ERROR_ACCESS_RESTRICTED_BY_ARL))