From 4082bb171aa384aa884210d358a86c48d00c0df7 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 4 Feb 2024 16:48:44 +0100 Subject: [PATCH 1/2] fix use of IsGranted is CrudController --- src/core/Resources/maker/controller/CrudController.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { From 5b22851674ea0dc50019b1ced24fc3783dd44c3d Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 25 Mar 2024 13:02:20 +0100 Subject: [PATCH 2/2] fix hidden save button in file manager --- CHANGELOG.md | 1 + src/core/Resources/views/file_manager/info.html.twig | 4 ++++ 2 files changed, 5 insertions(+) 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/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 %}