Skip to content

Commit

Permalink
Log as the current scanner, not request user
Browse files Browse the repository at this point in the history
For users not logged in (like the app), we have to use the username
coming from the token
  • Loading branch information
mhagander committed Nov 26, 2023
1 parent eb9ba78 commit 8dce54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgresqleu/confreg/checkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def checkin_field_api(request, urlname, regtoken, fieldname, what):

with transaction.atomic():
reg = get_object_or_404(ConferenceRegistration, conference=conference, payconfirmedat__isnull=False, canceledat__isnull=True, publictoken=token)
reglog(reg, "Marked scanner field {}".format(fieldname), request.user)
reglog(reg, "Marked scanner field {}".format(fieldname), user)
reg.dynaprops[fieldname] = datetime_string(timezone.now())
reg.save(update_fields=['dynaprops'])
return _json_response({
Expand Down

0 comments on commit 8dce54d

Please sign in to comment.