Commits

Chris Beaven  committed 42bbfcc

Fix a small bug with the form authentication in middleware.

  • Participants
  • Parent commits 8ec8466

Comments (0)

Files changed (1)

File 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