From 75e14a03be10ab64058bcccad037ca8d1acf30e7 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 1 Oct 2018 17:46:08 -0400 Subject: [PATCH] Remove settings link for non-owners of a repo --- gitsrht/templates/repo.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitsrht/templates/repo.html b/gitsrht/templates/repo.html index 82e2014..21575ab 100644 --- a/gitsrht/templates/repo.html +++ b/gitsrht/templates/repo.html @@ -35,11 +35,13 @@ owner=repo.owner.canonical_name, repo=repo.name), "refs")}} + {% if current_user.id == repo.owner_id %} + {% endif %} {% endblock %} -- 2.38.4