Added permissions to control access to API and manage API tokens

This commit is contained in:
Jan Böhmer 2023-08-26 22:57:50 +02:00
parent be14fe548c
commit 8fe3f4cf5c
7 changed files with 60 additions and 26 deletions

View file

@ -77,5 +77,7 @@
</div>
</div>
{% include "users/_api_tokens.html.twig" %}
{% if is_granted("@api.access_api") %}
{% include "users/_api_tokens.html.twig" %}
{% endif %}
{% endblock %}