Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support for blacklist/whitelist urls

  • Loading branch information...
commit 3d647d5e2b19cdb754b3dd5b5e09d93ff8124d42 1 parent 739afa2
Sævar Öfjörð Magnússon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spreedly/middleware.py
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.