@@ -127,7 +127,7 @@ def commitfest(request, cfid):
127127 whereclauses .append ("NOT EXISTS (SELECT 1 FROM commitfest_patch_authors cpa WHERE cpa.patch_id=p.id)" )
128128 elif request .GET ['author' ] == '-3' :
129129 # Checking for "yourself" requires the user to be logged in!
130- if not request .user .is_authenticated () :
130+ if not request .user .is_authenticated :
131131 return HttpResponseRedirect ('%s?next=%s' % (settings .LOGIN_URL , request .path ))
132132 whereclauses .append ("EXISTS (SELECT 1 FROM commitfest_patch_authors cpa WHERE cpa.patch_id=p.id AND cpa.user_id=%(self)s)" )
133133 whereparams ['self' ] = request .user .id
@@ -144,7 +144,7 @@ def commitfest(request, cfid):
144144 whereclauses .append ("NOT EXISTS (SELECT 1 FROM commitfest_patch_reviewers cpr WHERE cpr.patch_id=p.id)" )
145145 elif request .GET ['reviewer' ] == '-3' :
146146 # Checking for "yourself" requires the user to be logged in!
147- if not request .user .is_authenticated () :
147+ if not request .user .is_authenticated :
148148 return HttpResponseRedirect ('%s?next=%s' % (settings .LOGIN_URL , request .path ))
149149 whereclauses .append ("EXISTS (SELECT 1 FROM commitfest_patch_reviewers cpr WHERE cpr.patch_id=p.id AND cpr.user_id=%(self)s)" )
150150 whereparams ['self' ] = request .user .id
@@ -261,7 +261,7 @@ def patch(request, cfid, patchid):
261261
262262 # XXX: this creates a session, so find a smarter way. Probably handle
263263 # it in the callback and just ask the user then?
264- if request .user .is_authenticated () :
264+ if request .user .is_authenticated :
265265 committer = [c for c in committers if c .user == request .user ]
266266 if len (committer ) > 0 :
267267 is_committer = True
0 commit comments