Skip to content

Commit

Permalink
Renamed based on code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Oct 4, 2024
1 parent 3d3e7f6 commit 5ca78df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/InteractionModelEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5ca78df

Please sign in to comment.