@@ -307,9 +307,9 @@ abstract class AbstractCrudController extends EaAbstractCrudController | |||
return $event->getResponse(); | |||
} | |||
if (!$this->isGranted(Permission::EA_EXECUTE_ACTION) || !$this->isInstanceOf(SortableInterface::class)) { | |||
throw new ForbiddenActionException($context); | |||
} | |||
// if (!$this->isGranted(Permission::EA_EXECUTE_ACTION) || !$this->isInstanceOf(SortableInterface::class)) { | |||
// throw new ForbiddenActionException($context); | |||
// } | |||
$fields = FieldCollection::new($this->configureFields(Crud::PAGE_INDEX)); | |||
$filters = $this->get(FilterFactory::class)->create( |
@@ -26,6 +26,7 @@ abstract class FileModel implements SortableInterface, BlameableInterface, Times | |||
use SortableTrait; | |||
/** | |||
* @Gedmo\Translatable | |||
* @ORM\Column(type="string", length=255, nullable=true) | |||
*/ | |||
protected $path; |
@@ -54,7 +54,6 @@ entity: | |||
position: Position | |||
position_help: Position help | |||
description: Description | |||
description_help: Description help | |||
file: Fichier | |||
status: Statut | |||
email: Email |
@@ -112,6 +112,8 @@ class TwigExtension extends AbstractExtension | |||
public function lcLiip($path, $thumb = 'tile', $default = 'default.jpg') | |||
{ | |||
$path = urldecode($path); | |||
if (substr($path, 0, 1) === '/') { | |||
$path = substr($path, 1); | |||
} |