From cd3dffc44108a7c6157a6d6cef0cfe84bb4ac329 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 02 2015 12:01:08 +0000 Subject: Ensure the user is authenticated before checking it's username --- diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index 1c547bc..78a756a 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -40,7 +40,7 @@ - {% elif pull_request.status == 'Open' and + {% elif pull_request.status == 'Open' and authenticated and (repo_admin or g.fas_user.username == pull_request.user.username) %}