Browse Source

Merge branch 'master' of github.com:bcgov/eDivorce

pull/160/head
Charles Shin 8 years ago
parent
commit
8e1322ebeb
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      edivorce/apps/core/middleware/basicauth_middleware.py

+ 4
- 0
edivorce/apps/core/middleware/basicauth_middleware.py View File

@ -27,6 +27,10 @@ class BasicAuthMiddleware(object):
if request.path.startswith(settings.FORCE_SCRIPT_NAME + 'api/'):
return None
# allow all static files
if request.path.startswith(settings.FORCE_SCRIPT_NAME[:-1] + settings.FORCE_SCRIPT_NAME + 'static/'):
return None
# check if the middleware is enabled in settings
if not settings.BASICAUTH_ENABLED:
return None


Loading…
Cancel
Save