Skip to content

Commit 586893d

Browse files
-
1 parent f986757 commit 586893d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/Modules/index/index_stats.html.twig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@
5959
{% embed 'Embed/stats_table_row_embed.html.twig' %}
6060
{% block title %}
6161
{% if key in ['indices_by_documents', 'indices_by_primary_size'] %}
62-
<a class="text-secondary" href="{{ path('indices_read', {'index': row.title}) }}">{{ row.title }}</a>
62+
{% if is_granted('INDICES', 'global') %}
63+
<a class="text-secondary" href="{{ path('indices_read', {'index': row.title}) }}">{{ row.title }}</a>
64+
{% else %}
65+
{{ row.title }}
66+
{% endif %}
6367
{% elseif key in ['indices_by_status'] and is_granted('INDICES', 'global') %}
6468
<a class="text-secondary" href="{{ path('indices', {'status': row.title}) }}">{{ row.title|trans }}</a>
6569
{% elseif key in ['indices_by_health'] and is_granted('INDICES', 'global') %}

0 commit comments

Comments
 (0)