Skip to content

Commit

Permalink
give all users the possibility to generate participation certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
urvdp committed Dec 11, 2023
1 parent 1eee953 commit 9fe9f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spz/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ def course(id):

# we have two forms on this page, to differ between them a hidden identifier tag is used

if form.identifier.data == 'form-select' and form.validate_on_submit() and current_user.superuser:
if form.identifier.data == 'form-select' and form.validate_on_submit() and current_user.is_authenticated:
if len(request.form.getlist('applicants')) == 0:
flash('Mindestens ein/e Kursteilnehmer/in muss zum PDF-Erstellen ausgewählt sein.')
else:
Expand Down

0 comments on commit 9fe9f0a

Please sign in to comment.