Merge pull request #376 from dod-ccpo/auth-patterns

Standardize auth patterns
This commit is contained in:
richard-dds
2018-10-09 11:06:22 -04:00
committed by GitHub
8 changed files with 1093 additions and 54 deletions

View File

@@ -26,7 +26,7 @@
{{ SidenavItem("Workspaces", href="/workspaces", icon="cloud", active=g.matchesPath('/workspaces')) }}
{% endif %}
{% if g.Authorization.can_view_audit_log(g.current_user) %}
{% if g.Authorization.has_atat_permission(g.current_user, g.Permissions.VIEW_AUDIT_LOG) %}
{{ SidenavItem("Activity History", url_for('atst.activity_history'), icon="time", active=g.matchesPath('/activity-history')) }}
{% endif %}
</ul>