Merge branch 'backport_remove_path_check_in_eventinfo_to_1_5' into 'release/v1.5'

backport to v1.5 esp_matter/data_model_provider: Remove path check from EventInfo Fixes #1731

See merge request app-frameworks/esp-matter!1490
This commit is contained in:
Hrishikesh Dhayagude
2026-04-06 22:26:17 +08:00
@@ -691,9 +691,6 @@ CHIP_ERROR provider::EventInfo(const ConcreteEventPath &path, EventEntry &eventI
if (auto *cluster = mRegistry.Get(path); cluster != nullptr) {
return cluster->EventInfo(path, eventInfo);
}
Status status = CheckDataModelPath(path);
VerifyOrReturnValue(status == Protocols::InteractionModel::Status::Success,
CHIP_ERROR_IM_GLOBAL_STATUS_VALUE(status));
eventInfo.readPrivilege = MatterGetAccessPrivilegeForReadEvent(path.mClusterId, path.mEventId);
return CHIP_NO_ERROR;
}