Permalink
Browse files

Corrected mistake in the middleware

  • Loading branch information...
1 parent b1f297b commit ec1ad47d3e81dbe3522caaa8c29a6fdf6981c97b @thedjpetersen committed Jun 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 middleware/authentication.py
@@ -3,7 +3,7 @@
class AuthenticationMiddleware(object):
def process_request(self, request):
- if not request.path_info in ['/', '/login/']:
+ if not request.path_info[:12] == '/site_media/' and not request.path_info in [u'/', u'/login/']:
if 'regclass' not in request.session:
return HttpResponseRedirect('/')
return None

0 comments on commit ec1ad47

Please sign in to comment.