From 2068c8f6afc8a3e951b8ac8575031a65b02fc20e Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Mon, 12 Sep 2022 09:25:32 +0300 Subject: [PATCH] Fix: cannot import tahoe-sites, not ready yet --- .../core/djangoapps/appsembler/settings/helpers.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/openedx/core/djangoapps/appsembler/settings/helpers.py b/openedx/core/djangoapps/appsembler/settings/helpers.py index ff1bff3f9231..91719d19e7b2 100644 --- a/openedx/core/djangoapps/appsembler/settings/helpers.py +++ b/openedx/core/djangoapps/appsembler/settings/helpers.py @@ -4,8 +4,6 @@ from os import path -from tahoe_sites.api import get_tahoe_sites_auth_backends - def get_tahoe_theme_static_dirs(settings): """ @@ -76,10 +74,9 @@ def get_tahoe_multitenant_auth_backends(settings): upstream_backend_index = authentication_backends.index(upstream_user_model_backend) # Use multi-tenant Tahoe backends instead of the upstream EdxRateLimitedAllowAllUsersModelBackend backend. - authentication_backends = ( - settings.AUTHENTICATION_BACKENDS[:upstream_backend_index] + - get_tahoe_sites_auth_backends() + - settings.AUTHENTICATION_BACKENDS[upstream_backend_index + 1:] - ) + authentication_backends = settings.AUTHENTICATION_BACKENDS[:upstream_backend_index] + [ + 'tahoe_sites.backends.DefaultSiteBackend', + 'tahoe_sites.backends.OrganizationMemberBackend', + ] + settings.AUTHENTICATION_BACKENDS[upstream_backend_index + 1:] return authentication_backends