From a89d6aa548c398e4e2f3a237195b9789f91c9684 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 21 Aug 2017 23:06:32 +0200 Subject: [PATCH] SuggestController: add missing UserTemplates fixes #1061 --- application/controllers/SuggestController.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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();