mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(routers.packages): restrict /pkgbase/{name}/voters to those with creds
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
0c07c14860
commit
22093c5c38
3 changed files with 30 additions and 8 deletions
|
@ -131,14 +131,14 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th>{{ "Votes" | tr }}:</th>
|
||||
{% if not is_maintainer %}
|
||||
<td>{{ pkgbase.NumVotes }}</td>
|
||||
{% else %}
|
||||
{% if request.user.has_credential(creds.PKGBASE_LIST_VOTERS) %}
|
||||
<td>
|
||||
<a href="/pkgbase/{{ pkgbase.Name }}/voters">
|
||||
{{ pkgbase.NumVotes }}
|
||||
</a>
|
||||
</td>
|
||||
{% else %}
|
||||
<td>{{ pkgbase.NumVotes }}</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue