Filter for contact name after adding restrictions

refs #3549
This commit is contained in:
Eric Lippmann 2018-11-15 17:23:40 +01:00
parent 9f15bda698
commit fe3de9458b
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) {