From f9e53b9653a519fe822766125e4d4344777f7a7a Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 12 Mar 2024 21:24:56 +0100 Subject: [PATCH 1/2] Fixed lowercase --- lib/{inwx/inwx.php => Inwx/Inwx.php} | 0 lib/{plesk/plesk.php => Plesk/Plesk.php} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename lib/{inwx/inwx.php => Inwx/Inwx.php} (100%) rename lib/{plesk/plesk.php => Plesk/Plesk.php} (100%) diff --git a/lib/inwx/inwx.php b/lib/Inwx/Inwx.php similarity index 100% rename from lib/inwx/inwx.php rename to lib/Inwx/Inwx.php diff --git a/lib/plesk/plesk.php b/lib/Plesk/Plesk.php similarity index 100% rename from lib/plesk/plesk.php rename to lib/Plesk/Plesk.php From 419e03587eb865159d88a61c394e345b4ffb895b Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 12 Mar 2024 21:37:29 +0100 Subject: [PATCH 2/2] [Domain] Added Menu Point and rights check --- Layout/default/menu.php | 1 + application/Domain/DomainController.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Layout/default/menu.php b/Layout/default/menu.php index 788b1bed2..eaaf84f64 100644 --- a/Layout/default/menu.php +++ b/Layout/default/menu.php @@ -108,6 +108,7 @@ diff --git a/application/Domain/DomainController.php b/application/Domain/DomainController.php index 0a8dd8538..ee569e1e5 100644 --- a/application/Domain/DomainController.php +++ b/application/Domain/DomainController.php @@ -17,6 +17,10 @@ class DomainController extends mfBaseController { $this->layout()->set("me", $me); $this->me = $me; + if (!$this->me->isAdmin()) { + $this->redirect("dashboard"); + } + $this->inwx = new Inwx($this->INWX_USER, $this->INWX_PASS); $this->plesk = new Plesk($this->PLESK_USER, $this->PLESK_AUTH); }