diff --git a/src/frontend_celery/webapp/auth/auth_routes.py b/src/frontend_celery/webapp/auth/auth_routes.py index f621cbe7..03c52094 100644 --- a/src/frontend_celery/webapp/auth/auth_routes.py +++ b/src/frontend_celery/webapp/auth/auth_routes.py @@ -246,7 +246,7 @@ def profile(): @auth_blueprint.route('/generate_api_key', methods=['GET', 'POST']) -@require_permission(["read_resources"]) +@require_permission(["admin_resources"]) def generate_api_key(): username = session['user']['preferred_username'] new_key = secrets.token_hex(32) diff --git a/src/frontend_celery/webapp/templates/auth/profile.html b/src/frontend_celery/webapp/templates/auth/profile.html index f571ef5b..561693c9 100644 --- a/src/frontend_celery/webapp/templates/auth/profile.html +++ b/src/frontend_celery/webapp/templates/auth/profile.html @@ -29,6 +29,7 @@

{% block title %} Edit your personal information {% endblock %}

Affiliation + {% if session.get('user') is not none and 'super_user' in session['user']['roles'] %} API key @@ -39,6 +40,7 @@

{% block title %} Edit your personal information {% endblock %}

+ {% endif %} diff --git a/src/frontend_celery/webapp/templates/index.html b/src/frontend_celery/webapp/templates/index.html index 4a51edb0..1f1e81d7 100644 --- a/src/frontend_celery/webapp/templates/index.html +++ b/src/frontend_celery/webapp/templates/index.html @@ -93,6 +93,20 @@

Overview

Changelog

+
v 1.14.2 (15.10.2024)
+
+ General changes: + + Bugfixes: + +
+
v 1.14.1 (30.08.2024)
General changes: