We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4c483c commit d24f858Copy full SHA for d24f858
pgcommitfest/commitfest/views.py
@@ -65,6 +65,7 @@ def home(request):
65
)
66
67
68
+@login_required
69
def me(request):
70
cfs = list(CommitFest.objects.filter(status=CommitFest.STATUS_INPROGRESS))
71
if len(cfs) == 0:
@@ -79,10 +80,7 @@ def me(request):
79
80
# the user is logged in. XXX: Figure out how to avoid doing that..
81
form = CommitFestFilterForm(request.GET)
82
- if request.user.is_authenticated:
83
- patch_list = patchlist(request, cf, personalized=True)
84
- else:
85
- patch_list = patchlist(request, cf)
+ patch_list = patchlist(request, cf, personalized=True)
86
87
if patch_list.redirect:
88
return patch_list.redirect
0 commit comments