Skip to content

Commit

Permalink
Always set admin=false for sponsor badge scanning
Browse files Browse the repository at this point in the history
We don't have admins for sponsor scanning today, but it's needed to make
the returned json object be compatible with the check-in scans.
  • Loading branch information
mhagander committed Nov 26, 2023
1 parent c5cd504 commit b6a7011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion postgresqleu/confsponsor/scanning.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ def scanning_api(request, scannertoken, what):
'name': '{} for {}'.format(scanner.scanner.fullname, scanner.sponsor.displayname),
'sponsorname': scanner.sponsor.displayname,
'confname': scanner.sponsor.conference.conferencename,
'active': True,
'active': True, # As soon as badges are available they can be scanned.
'admin': False, # There are no "admins" in badge scanning
'activestatus': '',
}), content_type='application/json')
elif what == 'lookup':
Expand Down

0 comments on commit b6a7011

Please sign in to comment.