Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions openedx/core/djangoapps/appsembler/settings/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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