From b6a7011f9b31a57c594f2f3b74477f844aca4208 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sun, 26 Nov 2023 22:41:32 +0100 Subject: [PATCH] Always set admin=false for sponsor badge scanning 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. --- postgresqleu/confsponsor/scanning.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postgresqleu/confsponsor/scanning.py b/postgresqleu/confsponsor/scanning.py index ca5cef191..54db39eeb 100644 --- a/postgresqleu/confsponsor/scanning.py +++ b/postgresqleu/confsponsor/scanning.py @@ -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':