We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d33314 commit 2a9edceCopy full SHA for 2a9edce
1 file changed
openedx_authz/apps.py
@@ -5,7 +5,6 @@
5
from django.apps import AppConfig
6
from django.conf import settings
7
8
-from openedx_authz.engine.enforcer import AuthzEnforcer
9
10
11
class OpenedxAuthzConfig(AppConfig):
@@ -46,6 +45,7 @@ class OpenedxAuthzConfig(AppConfig):
46
45
def ready(self):
47
"""Initialization layer for the openedx_authz app."""
48
# Initialize the enforcer to ensure it's ready when the app starts
+ 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)
0 commit comments