[icinga-checkins] icinga.org: icinga2/master: Fix cluster permissions for SendNotifications messages
git at icinga.org
git at icinga.org
Mon Jun 13 11:14:21 CEST 2016
Module: icinga2
Branch: master
Commit: eb4aa4415cedc7bea34f4215de72c79c39b6935c
URL: https://git.icinga.org/?p=icinga2.git;a=commit;h=eb4aa4415cedc7bea34f4215de72c79c39b6935c
Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date: Mon Jun 13 11:13:25 2016 +0200
Fix cluster permissions for SendNotifications messages
refs #9242
---
lib/icinga/clusterevents.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/icinga/clusterevents.cpp b/lib/icinga/clusterevents.cpp
index 02b2e79..9772109 100644
--- a/lib/icinga/clusterevents.cpp
+++ b/lib/icinga/clusterevents.cpp
@@ -806,7 +806,7 @@ Value ClusterEvents::SendNotificationsAPIHandler(const MessageOrigin::Ptr& origi
if (!checkable)
return Empty;
- if (origin->FromZone && !origin->FromZone->CanAccessObject(checkable)) {
+ if (origin->FromZone && origin->FromZone != Zone::GetLocalZone()) {
Log(LogNotice, "ClusterEvents")
<< "Discarding 'send custom notification' message from '" << origin->FromClient->GetIdentity() << "': Unauthorized access.";
return Empty;
More information about the icinga-checkins
mailing list