|
|
@@ -326,7 +326,7 @@ abstract class AbstractAdminController extends EaAbstractCrudController |
|
|
|
) { |
|
|
|
if (!$this->isGranted( |
|
|
|
Permission::EA_EXECUTE_ACTION, |
|
|
|
['action' => "duplicate", 'entity' => $context->getEntity()] |
|
|
|
['action' =>ActionDefinition::DUPLICATE, 'entity' => $context->getEntity()] |
|
|
|
)) { |
|
|
|
throw new ForbiddenActionException($context); |
|
|
|
} |
|
|
@@ -344,7 +344,7 @@ abstract class AbstractAdminController extends EaAbstractCrudController |
|
|
|
->setEntityId($newEntity->getId()) |
|
|
|
->generateUrl(); |
|
|
|
|
|
|
|
$this->addFlashTranslator('success', 'duplicated'); |
|
|
|
$this->addFlashTranslator('success', ActionDefinition::DUPLICATE); |
|
|
|
|
|
|
|
return $this->redirect($url); |
|
|
|
} |