Rename audit log feature flag config variable

This commit is contained in:
graham-dds
2019-10-21 10:51:48 -04:00
parent c27e0e618e
commit 9de90d796d
7 changed files with 8 additions and 10 deletions

View File

@@ -24,7 +24,7 @@ bp.context_processor(atat_context_processor)
@bp.route("/activity-history")
@user_can(Permissions.VIEW_AUDIT_LOG, message="view activity log")
def activity_history():
if app.config.get("AUDIT_LOG_FEATURE_TOGGLE", False):
if app.config.get("USE_AUDIT_LOG", False):
pagination_opts = Paginator.get_pagination_opts(request)
audit_events = AuditLog.get_all_events(pagination_opts)
return render_template("audit_log/audit_log.html", audit_events=audit_events)