Grey out info provider settings button if the user misses system settings permission

Helps to make the problem in #1026 more clear
This commit is contained in:
Jan Böhmer 2025-09-05 23:33:05 +02:00
parent d657b2ff04
commit ba7d139f8a

View file

@ -23,7 +23,7 @@
</div>
<div class="col-6">
{% if provider.providerInfo.settings_class is defined %}
<a href="{{ path('info_providers_provider_settings', {'provider': provider.providerKey}) }}" class="btn btn-primary btn-sm"
<a href="{{ path('info_providers_provider_settings', {'provider': provider.providerKey}) }}" class="btn btn-primary btn-sm {% if not is_granted('@config.change_system_settings') %}disabled{% endif %}"
title="{% trans %}info_providers.settings.title{% endtrans %}"
><i class="fa-solid fa-cog"></i></a>
{% endif %}