Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Corrected mistake in the middleware

  • Loading branch information...
commit ec1ad47d3e81dbe3522caaa8c29a6fdf6981c97b 1 parent b1f297b
@thedjpetersen authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  middleware/authentication.py
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.