Skip to content

Commit 3878442

Browse files
Access Control Follow Up Changes (project-chip#41525)
* Access control follow ups * Fix build file * Restyled by gn --------- Co-authored-by: Restyled.io <[email protected]>
1 parent bc3be2a commit 3878442

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/app/clusters/access-control-server/ArlEncoder.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#pragma once
1919

2020
#include <access/AccessRestrictionProvider.h>
21+
#include <app-common/zap-generated/cluster-objects.h>
2122
#include <credentials/FabricTable.h>
2223

2324
namespace chip {

src/app/clusters/access-control-server/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ source_set("arl-encoder") {
2222

2323
public_deps = [
2424
"${chip_root}/src/access:access",
25+
"${chip_root}/src/app/common:cluster-objects",
2526
"${chip_root}/src/credentials:credentials",
2627
]
2728
}

src/app/clusters/access-control-server/access-control-cluster.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,6 @@ CHIP_ERROR AccessControlCluster::Startup(ServerClusterContext & context)
443443
void AccessControlCluster::Shutdown()
444444
{
445445
ChipLogProgress(DataManagement, "AccessControlCluster: shutdown");
446-
DefaultServerCluster::Shutdown();
447446

448447
#if CHIP_CONFIG_USE_ACCESS_RESTRICTIONS
449448
auto accessRestrictionProvider = GetAccessControl().GetAccessRestrictionProvider();
@@ -454,6 +453,7 @@ void AccessControlCluster::Shutdown()
454453
#endif
455454

456455
GetAccessControl().RemoveEntryListener(*this);
456+
DefaultServerCluster::Shutdown();
457457
}
458458

459459
DataModel::ActionReturnStatus AccessControlCluster::ReadAttribute(const DataModel::ReadAttributeRequest & request,

0 commit comments

Comments
 (0)