diff --git a/src/Application/Controller/CRUDController.php b/src/Application/Controller/CRUDController.php index cf0bc3b0d19358e57b1e2414119328982bc53bf9..78bf77c841cc652c3e409083575f4836585a2c21 100644 --- a/src/Application/Controller/CRUDController.php +++ b/src/Application/Controller/CRUDController.php @@ -434,11 +434,11 @@ abstract class CRUDController extends AbstractController $ids = $request->query->get('ids'); $ids = explode(',', $ids); - if (!$this->authorizationChecker->isGranted('ROLE_ADMIN')) { - $this->addFlash('success', $this->getFlashbagMessage('success', 'delete')); - - return $this->redirectToRoute($this->getRouteName('list')); - } + // if (!$this->authorizationChecker->isGranted('ROLE_ADMIN')) { + // $this->addFlash('success', $this->getFlashbagMessage('success', 'delete-all')); + // + // return $this->redirectToRoute($this->getRouteName('list')); + // } return $this->render($this->getTemplatingBasePath('delete_all'), [ // delete_all 'ids' => $ids,