Merge pull request #3624 from Icinga/fix/show-contact-with-restriction

Fix contact details if restriction is active
This commit is contained in:
Eric Lippmann 2018-11-19 17:24:43 +01:00 committed by GitHub
commit 4a0c1ccb03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,8 +43,8 @@ class ShowController extends Controller
'contact_notify_host_flapping',
'contact_notify_host_downtime',
));
$query->where('contact_name', $contactName);
$this->applyRestriction('monitoring/filter/objects', $query);
$query->where('contact_name', $contactName);
$contact = $query->getQuery()->fetchRow();
if ($contact) {