mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 15:44:11 +02:00
Remove unuseful check
This commit is contained in:
parent
50f803c042
commit
d4fb5a0656
@ -130,13 +130,6 @@ void ClusterEvents::ExecuteCheckFromQueue(const MessageOrigin::Ptr& origin, cons
|
||||
Checkable::Ptr checkable = host;
|
||||
ObjectLock oLock (checkable);
|
||||
|
||||
if (origin->FromZone && !origin->FromZone->CanAccessObject(checkable)) {
|
||||
Log(LogNotice, "ApiListener")
|
||||
<< "Discarding 'ExecuteCheckFromQueue' event for checkable '" << checkable->GetName()
|
||||
<< "' from '" << origin->FromClient->GetIdentity() << "': Unauthorized access.";
|
||||
return;
|
||||
}
|
||||
|
||||
/* Check deadline */
|
||||
double deadline = params->Get("deadline");
|
||||
if (Utility::GetTime() > deadline) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user