From b62c0839e569d13a165d30c08cf4779d0b34688a Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Tue, 12 Oct 2021 23:18:53 +0200 Subject: [PATCH] hide empty dates --- Layout/default/Order/Index.php | 2 +- application/Order/OrderController.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Layout/default/Order/Index.php b/Layout/default/Order/Index.php index a29b67687..748780916 100644 --- a/Layout/default/Order/Index.php +++ b/Layout/default/Order/Index.php @@ -322,7 +322,7 @@
Vorortinstallation:
- install_date)?>" placeholder="--.--.----" /> + install_date) : ""?>" placeholder="--.--.----" />
diff --git a/application/Order/OrderController.php b/application/Order/OrderController.php index de15d9fc4..47f52186f 100644 --- a/application/Order/OrderController.php +++ b/application/Order/OrderController.php @@ -652,6 +652,11 @@ class OrderController extends mfBaseController { } protected function saveVorortterminAction() { + if(!$this->me->is(["Admin","salespartner"])) { + $this->layout()->setFlash("Keine Berechtigung", "error"); + $this->redirect("Order"); + } + $r = $this->request; $order_id = $r->id;