We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 688bb9f commit 54b952cCopy full SHA for 54b952c
1 file changed
openedx_authz/apps.py
@@ -45,8 +45,8 @@ class OpenedxAuthzConfig(AppConfig):
45
def ready(self):
46
"""Initialization layer for the openedx_authz app."""
47
# Initialize the enforcer to ensure it's ready when the app starts
48
- from openedx_authz.engine.enforcer import AuthzEnforcer
49
casbin_adapter_app = "casbin_adapter.apps.CasbinAdapterConfig"
50
if casbin_adapter_app not in settings.INSTALLED_APPS:
51
settings.INSTALLED_APPS.append(casbin_adapter_app)
+ from openedx_authz.engine.enforcer import AuthzEnforcer
52
AuthzEnforcer()
0 commit comments