From f66ab8dae2f3d0418759f81a3a64dc9517a62449 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:17:31 +0200 Subject: Adding upstream version 1.10.2. Signed-off-by: Daniel Baumann --- .../controllers/ScheduledDowntimesController.php | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 application/controllers/ScheduledDowntimesController.php (limited to 'application/controllers/ScheduledDowntimesController.php') diff --git a/application/controllers/ScheduledDowntimesController.php b/application/controllers/ScheduledDowntimesController.php new file mode 100644 index 0000000..b6d314c --- /dev/null +++ b/application/controllers/ScheduledDowntimesController.php @@ -0,0 +1,47 @@ +tabs()->remove('index'); + $this->tabs()->remove('templates'); + return $res; + } + + protected function getTable() + { + return parent::getTable() + ->setBaseObjectUrl('director/scheduled-downtime'); + } + + protected function getApplyRulesTable() + { + return parent::getApplyRulesTable()->createLinksWithNames(); + } + + public function getType() + { + return 'scheduledDowntime'; + } + + public function getBaseObjectUrl() + { + return 'scheduled-downtime'; + } + + protected function assertApplyRulePermission() + { + return $this->assertPermission('director/scheduled-downtimes'); + } + + protected function checkDirectorPermissions() + { + $this->assertPermission('director/scheduled-downtimes'); + } +} -- cgit v1.2.3