fix(FastAPI): use CRED_PKGBASE_SET_KEYWORDS credential properly

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-10-15 19:11:15 -07:00
parent 2d46811c45
commit 27a6563302
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -33,10 +33,9 @@
</td>
</tr>
{% endif %}
{% if pkgbase.keywords.scalar() %}
<tr>
<th>{{ "Keywords" | tr }}:</th>
{% if is_maintainer %}
{% if request.user.has_credential("CRED_PKGBASE_SET_KEYWORDS", approved=[pkgbase.Maintainer]) %}
<td>
<form method="update"
action="/pkgbase/{{ pkgbase.Name }}/keywords/"
@ -62,7 +61,6 @@
</td>
{% endif %}
</tr>
{% endif %}
{% if licenses and licenses.scalar() and show_package_details %}
<tr>
<th>{{ "Licenses" | tr }}:</th>