Add perms for viewing application log
This commit is contained in:
parent
a65f758894
commit
5e2f00b1c2
@ -209,6 +209,7 @@ _APPLICATION_TEAM_PERMISSION_SET = {
|
||||
Permissions.DELETE_APPLICATION_MEMBER,
|
||||
Permissions.CREATE_APPLICATION_MEMBER,
|
||||
Permissions.ASSIGN_ENVIRONMENT_MEMBER,
|
||||
Permissions.VIEW_APPLICATION_ACTIVITY_LOG,
|
||||
],
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,7 @@ class Permissions(object):
|
||||
CREATE_ENVIRONMENT = "create_environment"
|
||||
DELETE_ENVIRONMENT = "delete_environment"
|
||||
ASSIGN_ENVIRONMENT_MEMBER = "assign_environment_member"
|
||||
VIEW_APPLICATION_ACTIVITY_LOG = "view_application_activity_log"
|
||||
|
||||
# funding
|
||||
VIEW_PORTFOLIO_FUNDING = "view_portfolio_funding" # TO summary page
|
||||
|
@ -103,7 +103,7 @@
|
||||
{% endcall %}
|
||||
{% endif %}
|
||||
|
||||
{% if user_can(permissions.VIEW_APPLICATION) %}
|
||||
{% if user_can(permissions.VIEW_APPLICATION_ACTIVITY_LOG) %}
|
||||
{% include "fragments/audit_events_log.html" %}
|
||||
{{ Pagination(audit_events, url=url_for('applications.settings', application_id=application.id)) }}
|
||||
{% endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user