Skip to content

Commit

Permalink
fix(release): patch audit read-only access (#1770)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackScanlon authored Jan 10, 2025
1 parent d6feaaf commit c962539
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions CodeListLibrary_project/cll/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,14 @@ def get_env_value(env_variable, cast=None, default=Symbol('None')):
'compressor',
# HTML Minifier
'django_minify_html',
# Engagelens-related
'easyaudit'
]

if not CLL_READ_ONLY and not IS_GATEWAY_PC:
INSTALLED_APPS += [
# Engagelens-related
'easyaudit'
]

# ==============================================================================#


Expand All @@ -323,10 +327,14 @@ def get_env_value(env_variable, cast=None, default=Symbol('None')):
'clinicalcode.middleware.brands.BrandMiddleware',
# Handle user session expiry
'clinicalcode.middleware.sessions.SessionExpiryMiddleware',
# Engagelens-related
'easyaudit.middleware.easyaudit.EasyAuditMiddleware',
]

if not CLL_READ_ONLY and not IS_GATEWAY_PC:
MIDDLEWARE += [
# Engagelens-related
'easyaudit.middleware.easyaudit.EasyAuditMiddleware',
]

# ==============================================================================#

''' Authentication backends '''
Expand Down

0 comments on commit c962539

Please sign in to comment.