fix(routers.packages): all authenticated users can see sshd clone uri

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-12-28 13:13:46 -08:00
parent d55dab93da
commit 34cb8ec268
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -4,7 +4,7 @@
<th>{{ "Git Clone URL" | tr }}:</th> <th>{{ "Git Clone URL" | tr }}:</th>
<td> <td>
<a class="copy" href="{{ git_clone_uri_anon | format(pkgbase.Name) }}">{{ git_clone_uri_anon | format(pkgbase.Name) }}</a> ({{ "read-only" | tr }}, {{ "click to copy" | tr }}) <a class="copy" href="{{ git_clone_uri_anon | format(pkgbase.Name) }}">{{ git_clone_uri_anon | format(pkgbase.Name) }}</a> ({{ "read-only" | tr }}, {{ "click to copy" | tr }})
{% if is_maintainer %} {% if request.user.is_authenticated() %}
<br /> <a class="copy" href="{{ git_clone_uri_priv | format(pkgbase.Name) }}">{{ git_clone_uri_priv | format(pkgbase.Name) }}</a> ({{ "click to copy" | tr }}) <br /> <a class="copy" href="{{ git_clone_uri_priv | format(pkgbase.Name) }}">{{ git_clone_uri_priv | format(pkgbase.Name) }}</a> ({{ "click to copy" | tr }})
{% endif %} {% endif %}
</td> </td>