Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
Dictionary::Ptr cr = params->Get("check_result");
Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
double nextCheck = params->Get("next_check");
Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
bool forced = params->Get("forced");
Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
bool forced = params->Get("forced");
Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
bool enabled = params->Get("enabled");
Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
bool enabled = params->Get("enabled");
Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
bool enabled = params->Get("enabled");
Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
bool enabled = params->Get("enabled");
Notification::Ptr notification = Notification::GetByName(nfc);
- if (!notification)
+ if (!notification || !notification->GetService()->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
bool nextNotification = params->Get("next_notification");
Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
Dictionary::Ptr comment = params->Get("comment");
Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
String id = params->Get("id");
Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
Dictionary::Ptr downtime = params->Get("downtime");
Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
String id = params->Get("id");
Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
String author = params->Get("author");
Service::Ptr service = Service::GetByName(svc);
- if (!service)
+ if (!service || !service->HasPrivileges(sender->GetName(), DomainPrivCommand))
return;
{