SuggestController: add missing UserTemplates

fixes #1061
This commit is contained in:
Thomas Gelf 2017-08-21 23:06:32 +02:00
parent 10391cab8e
commit a89d6aa548
1 changed files with 11 additions and 0 deletions

View File

@ -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();