Remove Authorization.can_view_audit_log as well
This commit is contained in:
parent
fcc1caca1c
commit
ac2ecf5f64
@ -19,6 +19,7 @@ from atst.routes.errors import make_error_pages
|
||||
from atst.domain.authnid.crl import CRLCache
|
||||
from atst.domain.auth import apply_authentication
|
||||
from atst.domain.authz import Authorization
|
||||
from atst.models.permissions import Permissions
|
||||
from atst.eda_client import MockEDAClient
|
||||
from atst.uploader import Uploader
|
||||
|
||||
@ -71,6 +72,7 @@ def make_flask_callbacks(app):
|
||||
g.matchesPath = lambda href: re.match("^" + href, request.path)
|
||||
g.modal = request.args.get("modal", None)
|
||||
g.Authorization = Authorization
|
||||
g.Permissions = Permissions
|
||||
|
||||
@app.after_request
|
||||
def _cleanup(response):
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user