changes to th the authentification for the page
Release Inventarsystem / release-docker (push) Successful in 2m25s
Release Inventarsystem / release-docker (push) Successful in 2m25s
This commit is contained in:
+1
-1
@@ -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'):
|
||||||
|
|||||||
Reference in New Issue
Block a user