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;