mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(routers.trusted_user): use creds to determine authorization
Closes #237 Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
9d221604b4
commit
059733cb8c
4 changed files with 71 additions and 34 deletions
|
@ -1,7 +1,7 @@
|
|||
<div class="box">
|
||||
<h2>{% trans %}{{ title }}{% endtrans %}</h2>
|
||||
|
||||
{% if title == "Current Votes" %}
|
||||
{% if title == "Current Votes" and request.user.has_credential(creds.TU_ADD_VOTE) %}
|
||||
<ul class="admin-actions">
|
||||
<li>
|
||||
<a href="/addvote">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue