From 03dcc8138aeb7e864d6a98640aae36f0e05b7710 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 3 Oct 2024 20:52:08 -0400 Subject: [PATCH] Fix condition typo --- src/app/InteractionModelEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/InteractionModelEngine.cpp b/src/app/InteractionModelEngine.cpp index 4b8cbff40e3605..869902a5bb937a 100644 --- a/src/app/InteractionModelEngine.cpp +++ b/src/app/InteractionModelEngine.cpp @@ -1759,7 +1759,7 @@ Protocols::InteractionModel::Status InteractionModelEngine::CommandCheckFlags(co // Fabric-scoped commands are not allowed before a specific accessing fabric is available. // This is mostly just during a PASE session before AddNOC. - if (!aRequest.subjectDescriptor.has_value() || aRequest.accessingFabricIndex == kUndefinedFabricIndex) + if (aRequest.accessingFabricIndex == kUndefinedFabricIndex) { return Status::UnsupportedAccess; }