fix: hide Unflag package from non-maintainers

Closes: #364
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
Leonidas Spyropoulos 2022-05-19 13:13:36 +01:00
parent 0b03a6871e
commit 034e47bc28
No known key found for this signature in database
GPG key ID: 59E43E106B247368
3 changed files with 7 additions and 2 deletions

View file

@ -41,6 +41,7 @@
</a>
</span>
</li>
{% if request.user.has_credential(creds.PKGBASE_UNFLAG, approved=unflaggers) %}
<li>
<form action="/pkgbase/{{ pkgbase.Name }}/unflag" method="post">
<input class="button text-button"
@ -50,6 +51,7 @@
/>
</form>
</li>
{% endif %}
{% endif %}
<li>
{% if not voted %}