mirror of https://github.com/Icinga/icinga2.git
Fixed crash in DiscoveryComponent::HasMessagePermission
This commit is contained in:
parent
9d86d0d126
commit
4cbf2400c0
|
@ -392,6 +392,9 @@ void DiscoveryComponent::SendDiscoveryMessage(string method, string identity, En
|
|||
|
||||
bool DiscoveryComponent::HasMessagePermission(Dictionary::Ptr roles, string messageType, string message)
|
||||
{
|
||||
if (!roles)
|
||||
return false;
|
||||
|
||||
ConfigHive::Ptr configHive = GetApplication()->GetConfigHive();
|
||||
ConfigCollection::Ptr roleCollection = configHive->GetCollection("role");
|
||||
|
||||
|
|
Loading…
Reference in New Issue