diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 9234f9b..bf491e0 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -10,7 +10,7 @@ "icon": null, "order": 10, "from": "Profile", - "permission": null, + "permission": { "type": null, "element": null }, "parent": 1000201001, "children": [ { @@ -24,7 +24,7 @@ "icon": null, "order": 1, "from": "Profile", - "permission": null, + "permission": { "type": null, "element": null }, "parent": 1000301001, "children": [] }, @@ -39,7 +39,7 @@ "icon": null, "order": 3, "from": "Profile", - "permission": null, + "permission": { "type": null, "element": null }, "parent": 1000301001, "children": [] }, @@ -54,7 +54,7 @@ "icon": null, "order": 999, "from": "Profile", - "permission": null, + "permission": { "type": null, "element": null }, "parent": 1000301001, "children": [] } diff --git a/Controller.php b/Controller.php index ad52144..c77ac6f 100644 --- a/Controller.php +++ b/Controller.php @@ -117,7 +117,7 @@ class Controller extends ModuleAbstract implements WebInterface $view = new View($this->app, $request, $response); if (!$this->app->accountManager->get($request->getHeader()->getAccount())->hasPermission( - PermissionType::READ, $this->app->orgId, $this->app->appName, self::MODULE_ID, PermissionState::PROFILE) + PermissionType::READ, $this->app->orgId, $this->app->appName, self::MODULE_NAME, PermissionState::PROFILE) ) { $view->setTemplate('/Web/Backend/Error/403_inline'); $response->getHeader()->setStatusCode(RequestStatusCode::R_403); @@ -146,7 +146,7 @@ class Controller extends ModuleAbstract implements WebInterface $view = new View($this->app, $request, $response); if (!$this->app->accountManager->get($request->getHeader()->getAccount())->hasPermission( - PermissionType::READ, $this->app->orgId, $this->app->appName, self::MODULE_ID, PermissionState::PROFILE) + PermissionType::READ, $this->app->orgId, $this->app->appName, self::MODULE_NAME, PermissionState::PROFILE) ) { $view->setTemplate('/Web/Backend/Error/403_inline'); $response->getHeader()->setStatusCode(RequestStatusCode::R_403);