controllers refactoring

This commit is contained in:
Yuri Kuznetsov
2021-04-29 17:16:11 +03:00
parent 805f377459
commit d15474c243
32 changed files with 448 additions and 358 deletions
@@ -29,14 +29,10 @@
namespace Espo\Controllers;
use Espo\Core\Exceptions\Forbidden;
class ScheduledJobLogRecord extends \Espo\Core\Controllers\Record
{
protected function checkControllerAccess()
protected function checkAccess(): bool
{
if (!$this->getUser()->isAdmin()) {
throw new Forbidden();
}
return $this->user->isAdmin();
}
}