diff --git a/judge/views/select2.py b/judge/views/select2.py index 37efa09..0d1e60a 100644 --- a/judge/views/select2.py +++ b/judge/views/select2.py @@ -168,7 +168,7 @@ class ChatUserSearchSelect2View(BaseListView): return _get_user_queryset(self.term) def get(self, request, *args, **kwargs): - if self.request.user.is_authenticated: + if not self.request.user.is_authenticated: raise Http404() self.request = request self.kwargs = kwargs