This commit is contained in:
Yuri Kuznetsov
2021-05-11 11:49:55 +03:00
parent dff21145d0
commit 3a0ee7de94

View File

@@ -69,12 +69,9 @@ class EntityManager
$this->entityManagerTool = $entityManagerTool;
$this->configWriter = $configWriter;
$this->checkControllerAccess();
}
protected function checkAccess(): bool
{
return $this->user->isAdmin();
if (!$this->user->isAdmin()) {
throw new Forbidden();
}
}
public function postActionCreateEntity(Request $request)