Fix cluster permissions for SendNotifications messages

refs #9242
This commit is contained in:
Gunnar Beutner 2016-06-13 11:13:25 +02:00
parent cb01f96dad
commit eb4aa4415c
1 changed files with 1 additions and 1 deletions

View File

@ -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;