From 9fee337c90fa76d2eac60c518c79fe161a9e251d Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 23 Jan 2020 12:13:22 -0500 Subject: [PATCH] summary: fix current_user use --- gitsrht/templates/summary.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gitsrht/templates/summary.html b/gitsrht/templates/summary.html index b8cf23f..81afd2f 100644 --- a/gitsrht/templates/summary.html +++ b/gitsrht/templates/summary.html @@ -119,8 +119,7 @@ - {% if current_user.id == repo.owner_id - and not license + {% if current_user == repo.owner and not license and repo.visibility.value == 'public' %}
Heads up! We couldn't find a license file for your -- 2.38.4