[Domain] Added Menu Point and rights check

This commit is contained in:
Luca Haid
2024-03-12 21:37:29 +01:00
parent f9e53b9653
commit 419e03587e
2 changed files with 5 additions and 0 deletions

View File

@@ -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);
}