|
|
@@ -8,10 +8,8 @@ use EasyCorp\Bundle\EasyAdminBundle\Collection\FieldCollection; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Collection\FilterCollection; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\Action; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\Actions; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\Assets; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\KeyValueStore; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\Option\EA; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController as EaAbstractCrudController; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto; |
|
|
@@ -20,7 +18,6 @@ use EasyCorp\Bundle\EasyAdminBundle\Event\AfterCrudActionEvent; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Event\AfterEntityUpdatedEvent; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeCrudActionEvent; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeEntityDeletedEvent; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeEntityUpdatedEvent; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Exception\ForbiddenActionException; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Exception\InsufficientEntityPermissionException; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory; |
|
|
@@ -30,18 +27,14 @@ use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGenerator; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Security\Permission; |
|
|
|
use Lc\SovBundle\Doctrine\EntityManager; |
|
|
|
use Lc\SovBundle\Doctrine\Extension\DevAliasInterface; |
|
|
|
use Lc\SovBundle\Doctrine\Extension\SeoInterface; |
|
|
|
use Lc\SovBundle\Doctrine\Extension\SortableInterface; |
|
|
|
use Lc\SovBundle\Doctrine\Extension\TranslatableInterface; |
|
|
|
use Lc\SovBundle\Doctrine\Extension\TreeInterface; |
|
|
|
use Lc\SovBundle\Field\CollectionField; |
|
|
|
use Lc\SovBundle\Field\GalleryManagerField; |
|
|
|
use Lc\SovBundle\Form\Type\Crud\PositionType; |
|
|
|
use Lc\SovBundle\Form\Common\PositionType; |
|
|
|
use Lc\SovBundle\Translation\TranslatorAdmin; |
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\CollectionType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\TextType; |
|
|
|
use Symfony\Component\HttpFoundation\RequestStack; |
|
|
@@ -305,7 +298,8 @@ abstract class AbstractAdminController extends EaAbstractCrudController |
|
|
|
return $event->getResponse(); |
|
|
|
} |
|
|
|
|
|
|
|
if (!$this->isGranted(Permission::EA_EXECUTE_ACTION) || !$this->isInstanceOf(SortableInterface::class)) { |
|
|
|
//if (!$this->isGranted(Permission::EA_EXECUTE_ACTION) || !$this->isInstanceOf(SortableInterface::class)) { |
|
|
|
if (!$this->isInstanceOf(SortableInterface::class)) { |
|
|
|
throw new ForbiddenActionException($context); |
|
|
|
} |
|
|
|
|