mirror of
https://github.com/Karaka-Management/oms-Kanban.git
synced 2026-02-10 01:08:40 +00:00
Bug fixes e.g. csp and other
This commit is contained in:
parent
8ca141802a
commit
37979c939e
|
|
@ -195,8 +195,10 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
{
|
||||
$view = new View($this->app, $request, $response);
|
||||
|
||||
$accountId = $request->getHeader()->getAccount();
|
||||
|
||||
if (!$this->app->accountManager->get($accountId)->hasPermission(
|
||||
PermissionType::CREATE, $this->app->orgId, $this->app->appName, self::MODULE_ID, PermissionState::BOARD, $board->getId())
|
||||
PermissionType::CREATE, $this->app->orgId, $this->app->appName, self::MODULE_ID, PermissionState::BOARD)
|
||||
) {
|
||||
$view->setTemplate('/Web/Backend/Error/403_inline');
|
||||
$response->getHeader()->setStatusCode(RequestStatusCode::R_403);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user