Commits

Chris Beaven committed 42bbfcc

Fix a small bug with the form authentication in middleware.

Comments (0)

Files changed (1)

lockdown/middleware.py

         # Don't lock down if the user is already authorized for previewing.
         token = session.get(self.session_key)
         if hasattr(form, 'authenticate'):
-            if self.form.authenticate(token):
+            if form.authenticate(token):
                 return None
         elif token is True:
             return None