Skip to content

Commit d9947eb

Browse files
-
1 parent b59deec commit d9947eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/Modules/index_template_legacy/index_template_legacy_list.html.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
{% set columns = columns|merge({'ilm_policy': true}) %}
88
{% endif %}
99

10+
{% set is_granted_ilm_policies = is_granted('ILM_POLICIES', 'global') %}
11+
1012
{% block thead %}
1113
<tr>
1214
{% for column, display in columns %}
@@ -65,7 +67,7 @@
6567
{% if 'ilm_policy' == column %}
6668
<td>
6769
{% if row.setting('index.lifecycle.name') %}
68-
{% if is_granted('ILM_POLICIES', 'global') %}
70+
{% if is_granted_ilm_policies and hasFeature('ilm') %}
6971
<a class="text-secondary" href="{{ path('ilm_read', {'name': row.setting('index.lifecycle.name')}) }}">{{ row.setting('index.lifecycle.name') }}</a>
7072
{% else %}
7173
{{ row.setting('index.lifecycle.name') }}

0 commit comments

Comments
 (0)