Change permission check from int to string

This commit is contained in:
Dennis Eichhorn 2018-03-09 22:26:22 +01:00
parent 8e942c9de0
commit 674b522e61
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
"icon": "fa fa-calendar",
"order": 10,
"from": "Calendar",
"permission": null,
"permission": { "type": null, "element": null },
"parent": 1000201001,
"children": []
},
@ -25,7 +25,7 @@
"icon": null,
"order": 30,
"from": "Calendar",
"permission": null,
"permission": { "type": null, "element": null },
"parent": 1000201001,
"children": []
}

View File

@ -105,7 +105,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::DASHBOARD)
PermissionType::READ, $this->app->orgId, $this->app->appName, self::MODULE_NAME, PermissionState::DASHBOARD)
) {
$view->setTemplate('/Web/Backend/Error/403_inline');
return $view;