Conditionally render logs on AUDIT_LOG_FEATURE_TOGGLE

This commit is contained in:
graham-dds
2019-10-17 16:00:38 -04:00
parent 8e0ce0519d
commit 2720240903
2 changed files with 3 additions and 3 deletions

View File

@@ -117,7 +117,7 @@
<hr> <hr>
{% if user_can(permissions.VIEW_APPLICATION_ACTIVITY_LOG) %} {% if user_can(permissions.VIEW_APPLICATION_ACTIVITY_LOG) and config.get("AUDIT_LOG_FEATURE_TOGGLE", False) %}
{% include "fragments/audit_events_log.html" %} {% include "fragments/audit_events_log.html" %}
{{ Pagination(audit_events, url=url_for('applications.settings', application_id=application.id)) }} {{ Pagination(audit_events, url=url_for('applications.settings', application_id=application.id)) }}
{% endif %} {% endif %}

View File

@@ -64,7 +64,7 @@
{% include "portfolios/fragments/portfolio_members.html" %} {% include "portfolios/fragments/portfolio_members.html" %}
{% endif %} {% endif %}
{% if user_can(permissions.VIEW_PORTFOLIO_ACTIVITY_LOG) %} {% if user_can(permissions.VIEW_PORTFOLIO_ACTIVITY_LOG) and config.get("AUDIT_LOG_FEATURE_TOGGLE", False) %}
{% include "fragments/audit_events_log.html" %} {% include "fragments/audit_events_log.html" %}
{{ Pagination(audit_events, url_for('portfolios.admin', portfolio_id=portfolio.id)) }} {{ Pagination(audit_events, url_for('portfolios.admin', portfolio_id=portfolio.id)) }}
{% endif %} {% endif %}