mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user