Permalink
Browse files

Support for blacklist/whitelist urls

  • Loading branch information...
1 parent 739afa2 commit 3d647d5e2b19cdb754b3dd5b5e09d93ff8124d42 Sævar Öfjörð Magnússon committed Apr 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spreedly/middleware.py
@@ -18,7 +18,7 @@ def process_request(self, request):
allowed = True
elif spreedly_settings.SPREEDLY_LOCK_TYPE == 'blacklist':
- allowed = True:
+ allowed = True
for path in spreedly_settings.SPREEDLY_BLOCKED_PATHS + [spreedly_settings.SPREEDLY_URL, settings.LOGIN_URL]:
if request.path.startswith(path):
allowed = False

0 comments on commit 3d647d5

Please sign in to comment.