diff --git a/cms/settings.py b/cms/settings.py index 5da967f2..5218bb0b 100644 --- a/cms/settings.py +++ b/cms/settings.py @@ -445,19 +445,6 @@ CELERY_TASK_ALWAYS_EAGER = False if os.environ.get("TESTING"): CELERY_TASK_ALWAYS_EAGER = True - -if GLOBAL_LOGIN_REQUIRED: - # this should go after the AuthenticationMiddleware middleware - MIDDLEWARE.insert(6, "login_required.middleware.LoginRequiredMiddleware") - LOGIN_REQUIRED_IGNORE_PATHS = [ - r'/accounts/login/$', - r'/accounts/logout/$', - r'/accounts/signup/$', - r'/accounts/password/.*/$', - r'/accounts/confirm-email/.*/$', - # r'/api/v[0-9]+/', - ] - # if True, only show original, don't perform any action on videos DO_NOT_TRANSCODE_VIDEO = False @@ -544,3 +531,16 @@ try: from .dev_settings import * # noqa except ImportError: pass + + +if GLOBAL_LOGIN_REQUIRED: + # this should go after the AuthenticationMiddleware middleware + MIDDLEWARE.insert(6, "login_required.middleware.LoginRequiredMiddleware") + LOGIN_REQUIRED_IGNORE_PATHS = [ + r'/accounts/login/$', + r'/accounts/logout/$', + r'/accounts/signup/$', + r'/accounts/password/.*/$', + r'/accounts/confirm-email/.*/$', + # r'/api/v[0-9]+/', + ] diff --git a/cms/version.py b/cms/version.py index eb5be06b..762fa9c4 100644 --- a/cms/version.py +++ b/cms/version.py @@ -1 +1 @@ -VERSION = "5.0.0" +VERSION = "5.0.1"