SNMP only stanza has access to full check_acl features

This commit is contained in:
Oliver Gorwits
2017-05-06 14:18:27 +01:00
parent 4a44fa5863
commit deaeab2670

View File

@@ -300,7 +300,7 @@ sub _build_communities {
if not $stanza->{tag}
and !exists $stanza->{community};
if ($stanza->{$mode} and check_acl($device->ip, $stanza->{only})) {
if ($stanza->{$mode} and check_acl($device, $stanza->{only})) {
if ($device->in_storage and
$stored_tag and $stored_tag eq $stanza->{tag}) {
# last known-good by tag