Allow editors and approvers to see package audit log descriptions

This commit is contained in:
rubenwardy
2023-05-12 00:55:44 +01:00
parent 84d379d490
commit f03746f5ad
4 changed files with 24 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
<div class="list-group mt-3">
{% for entry in log %}
<a class="list-group-item list-group-item-action"
{% if entry.description and current_user.rank.atLeast(current_user.rank.MODERATOR) %}
{% if entry.description and entry.checkPerm(current_user, 'VIEW_AUDIT_DESCRIPTION') %}
href="{{ url_for('admin.audit_view', id_=entry.id) }}">
{% else %}
href="{{ entry.url }}">