summaryrefslogtreecommitdiffstats
path: root/application/controllers/UsertemplateController.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--application/controllers/UsertemplateController.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/application/controllers/UsertemplateController.php b/application/controllers/UsertemplateController.php
new file mode 100644
index 0000000..41fce86
--- /dev/null
+++ b/application/controllers/UsertemplateController.php
@@ -0,0 +1,16 @@
+<?php
+
+namespace Icinga\Module\Director\Controllers;
+
+use Icinga\Module\Director\Objects\IcingaUser;
+use Icinga\Module\Director\Web\Controller\TemplateController;
+
+class UsertemplateController extends TemplateController
+{
+ protected function requireTemplate()
+ {
+ return IcingaUser::load([
+ 'object_name' => $this->params->get('name')
+ ], $this->db());
+ }
+}