diff --git a/application/controllers/SuggestController.php b/application/controllers/SuggestController.php index 0152b941..9485fc13 100644 --- a/application/controllers/SuggestController.php +++ b/application/controllers/SuggestController.php @@ -142,6 +142,17 @@ class SuggestController extends ActionController return $db->fetchCol($query); } + protected function suggestUsertemplates() + { + $this->assertPermission('director/users'); + $db = $this->db()->getDbAdapter(); + $query = $db->select() + ->from('icinga_user', 'object_name') + ->order('object_name') + ->where("object_type = 'template'"); + return $db->fetchCol($query); + } + protected function suggestCheckcommandnames() { $db = $this->db()->getDbAdapter();