mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-02-16 08:28:42 +00:00
Implement organization permission
This commit is contained in:
parent
970a90fa3a
commit
f1e00346f5
|
|
@ -106,7 +106,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
$view = new View($this->app, $request, $response);
|
$view = new View($this->app, $request, $response);
|
||||||
|
|
||||||
if (!$this->app->accountManager->get($request->getHeader()->getAccount())->hasPermission(
|
if (!$this->app->accountManager->get($request->getHeader()->getAccount())->hasPermission(
|
||||||
PermissionType::READ, 1, $this->app->appName, self::MODULE_ID, PermissionState::DASHBOARD)
|
PermissionType::READ, $this->app->appId, $this->app->appName, self::MODULE_ID, PermissionState::DASHBOARD)
|
||||||
) {
|
) {
|
||||||
$view->setTemplate('/Web/Backend/Error/403_inline');
|
$view->setTemplate('/Web/Backend/Error/403_inline');
|
||||||
return $view;
|
return $view;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user