Skip to content

Commit

Permalink
is staff
Browse files Browse the repository at this point in the history
  • Loading branch information
leduythuccs committed Dec 11, 2024
1 parent 4682fec commit e6f4651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/template_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def general_info(request):
'perms': PermWrapper(request.user),
'HAS_WEBAUTHN': bool(settings.WEBAUTHN_RP_ID),
}
if request.user.is_superuser:
if request.user.is_staff:
context['ticket_count'] = Ticket.objects.filter(is_open=True).count()
return context

Expand Down

0 comments on commit e6f4651

Please sign in to comment.