changes to the authentification
Release Inventarsystem / release-docker (push) Successful in 2m27s

This commit is contained in:
2026-09-14 09:23:09 +02:00
parent 6b9cf8a024
commit 23dfb7d719
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2188,7 +2188,7 @@ def _upload_student_cards_excel():
current_permissions = us.get_effective_permissions(session['username'])
if not current_permissions['actions'].get('can_manage_user', False):
if not current_permissions['actions'].get('can_manage_users', False):
flash('Ihnen fehlen die nötigen Berechtigungen, um diese Aktion auszuführen.', 'error')
return redirect(url_for('library_view'))
+1 -1
View File
@@ -1376,7 +1376,7 @@
<li><a class="dropdown-item" href="{{ url_for('mahnungen_admin') }}">Mahnungen</a></li>
{% endif %}
{% if student_cards_module_enabled %}
{% if current_permissions.actions.get('can_manage_users', False) %}
{% if current_permissions.actions.get('can_manage_settings', False) %}
<li><a class="dropdown-item" href="{{ url_for('student_cards_admin') }}">Bibliotheksausweis</a></li>
{% endif %}
{% endif %}