mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
controllers refactoring
This commit is contained in:
@@ -72,11 +72,9 @@ class EntityManager
|
||||
$this->checkControllerAccess();
|
||||
}
|
||||
|
||||
protected function checkControllerAccess()
|
||||
protected function checkAccess(): bool
|
||||
{
|
||||
if (!$this->user->isAdmin()) {
|
||||
throw new Forbidden();
|
||||
}
|
||||
return $this->user->isAdmin();
|
||||
}
|
||||
|
||||
public function postActionCreateEntity(Request $request)
|
||||
|
||||
Reference in New Issue
Block a user