diff --git a/src/Component/BaseGrid.php b/src/Component/BaseGrid.php index f4306b1..414fa6d 100755 --- a/src/Component/BaseGrid.php +++ b/src/Component/BaseGrid.php @@ -98,7 +98,7 @@ final protected function createComponentGrid(): DataGrid } $grid->setDataSource($queryObjectDataSource); - if ($this->allowEdit()) { + if ($this->allowEdit() && $this->getSecurityUser()->isAllowed($this->allowEdit()->getAcl())) { $grid->addAction('edit', '') ->setIcon('edit') ->setClass('ajax datagrid-edit');