diff --git a/CHANGELOG.md b/CHANGELOG.md index 204c271..ce3c0fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Fixed * fix default crud sort +* fix hidden save button in file manager ## [v1.24.1] - 2024-02-01 ### Fixed diff --git a/src/core/Resources/maker/controller/CrudController.tpl.php b/src/core/Resources/maker/controller/CrudController.tpl.php index ec89f3b..2e44d4a 100644 --- a/src/core/Resources/maker/controller/CrudController.tpl.php +++ b/src/core/Resources/maker/controller/CrudController.tpl.php @@ -11,11 +11,11 @@ use as Entity; use as Factory; use as Type; use as RepositoryQuery; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Session\Session; use Symfony\Component\Routing\Annotation\Route; -use Symfony\Component\Security\Http\Attribute\IsGranted; class extends CrudController { diff --git a/src/core/Resources/views/file_manager/info.html.twig b/src/core/Resources/views/file_manager/info.html.twig index 427bfcb..ee56d6d 100644 --- a/src/core/Resources/views/file_manager/info.html.twig +++ b/src/core/Resources/views/file_manager/info.html.twig @@ -197,6 +197,10 @@
+ {% if splInfo.isFile and not isLocked %} + + {% endif %} +
{% endif %}