changes to th the authentification for the page
Release Inventarsystem / release-docker (push) Successful in 2m25s

This commit is contained in:
2026-09-14 09:13:43 +02:00
parent 69bb02b7dc
commit 6b9cf8a024
+1 -1
View File
@@ -5354,7 +5354,7 @@ def student_card_single_barcode_download(card_id):
return redirect(url_for('login')) return redirect(url_for('login'))
current_permissions = us.get_effective_permissions(session['username']) current_permissions = us.get_effective_permissions(session['username'])
if not current_permissions['actions'].get('can_manage_users', False): if not current_permissions['actions'].get('can_manage_settings', False):
flash('Ihnen fehlen die nötigen Berechtigungen, um diese Aktion auszuführen.', 'error') flash('Ihnen fehlen die nötigen Berechtigungen, um diese Aktion auszuführen.', 'error')
return redirect(url_for('library_view')) return redirect(url_for('library_view'))
if not cfg.MODULES.is_enabled('student_cards'): if not cfg.MODULES.is_enabled('student_cards'):