Skip to content

Commit

Permalink
ShowController: Restrict the display of single contacts
Browse files Browse the repository at this point in the history
refs #9009
  • Loading branch information
Johannes Meyer committed Jun 15, 2015
1 parent 32c5d5a commit efc52e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/monitoring/application/controllers/ShowController.php
Expand Up @@ -131,6 +131,7 @@ public function contactAction()
'contact_notify_host_downtime',
));
$query->where('contact_name', $contactName);
$this->applyRestriction('monitoring/filter/objects', $query);
$contact = $query->getQuery()->fetchRow();

if ($contact) {
Expand All @@ -153,6 +154,7 @@ public function contactAction()
));

$notifications->where('contact_object_id', $contact->contact_object_id);
$this->applyRestriction('monitoring/filter/objects', $notifications);
$this->view->notifications = $notifications;
$this->setupLimitControl();
$this->setupPaginationControl($this->view->notifications);
Expand Down

0 comments on commit efc52e3

Please sign in to comment.