Skip to content

Commit 8657ebf

Browse files
committed
Make user dropdowns searchable when not logged in
The endpoint required login for afaict no particularly good reason. All it returns are usernames and names of users in the system. These are already available when browsing on many pages. Also a login requirement for this doesn't seem a particularly high hurdle to overcome as it is easy to make an account.
1 parent 2e39b7c commit 8657ebf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pgcommitfest/commitfest/lookups.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
from django.contrib.auth.decorators import login_required
21
from django.contrib.auth.models import User
32
from django.db.models import Q
43
from django.http import Http404, HttpResponse
54

65
import json
76

87

9-
@login_required
108
def userlookup(request):
119
query = request.GET.get("query", None)
1210
if not query:

0 commit comments

Comments
 (0)