From de81c2ffb1cfe2cd17db5cd9d19566ab5574e1c8 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Tue, 17 Dec 2024 12:09:00 -0500 Subject: [PATCH] Hide Add Case button if not admin or case manager Hide case filter if user not admin or case manager Hide case edit button and case assign button if not admin or case manager --- templates/internal/cases/list-cases.html.twig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/internal/cases/list-cases.html.twig b/templates/internal/cases/list-cases.html.twig index 5428b2c..7dabaa9 100644 --- a/templates/internal/cases/list-cases.html.twig +++ b/templates/internal/cases/list-cases.html.twig @@ -15,12 +15,15 @@
Case List
+ {% if is_granted('ROLE_CASE_MANAGER') or is_granted('ROLE_ADMIN') %}
+ {% endif %}
+ {% if is_granted('ROLE_ADMIN') %}
Filters:
+ {% endif %}
@@ -81,12 +85,14 @@

+ {% if is_granted('ROLE_CASE_MANAGER') or is_granted('ROLE_ADMIN') %} edit badge + {% endif %} create_new_folder