mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
change(FastAPI): automate request login requirement
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
75c49e4f8a
commit
8bc1fab74d
2 changed files with 1 additions and 7 deletions
|
@ -132,15 +132,9 @@
|
|||
</li>
|
||||
{% endif %}
|
||||
<li>
|
||||
{% if not request.user.is_authenticated() %}
|
||||
<a href="/login?next={{ '/pkgbase/%s/request' | format(result.Name) | quote_plus }}">
|
||||
{{ "Submit Request" | tr }}
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="/pkgbase/{{ result.Name }}/request/">
|
||||
{{ "Submit Request" | tr }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% if request.user.has_credential("CRED_PKGBASE_DELETE") %}
|
||||
<li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue