Skip to content

Commit

Permalink
Fix cluster permissions for SendNotifications messages
Browse files Browse the repository at this point in the history
refs #9242
  • Loading branch information
gunnarbeutner committed Jun 13, 2016
1 parent cb01f96 commit eb4aa44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/icinga/clusterevents.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit eb4aa44

Please sign in to comment.