Skip to content

Commit 688bb9f

Browse files
refactor: add casbin adapter to common to avoid build failing
1 parent 2a9edce commit 688bb9f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

openedx_authz/settings/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ def plugin_settings(settings):
1717
settings: The Django settings object
1818
"""
1919
# Add external third-party apps to INSTALLED_APPS
20+
casbin_adapter_app = "casbin_adapter.apps.CasbinAdapterConfig"
21+
if casbin_adapter_app not in settings.INSTALLED_APPS:
22+
settings.INSTALLED_APPS.append(casbin_adapter_app)
2023

2124
# Add Casbin configuration
2225
settings.CASBIN_MODEL = os.path.join(

0 commit comments

Comments
 (0)