From c30730fa871f89bfff0918b8d4ad77e3be13fb87 Mon Sep 17 00:00:00 2001 From: Paul W. Frields Date: Apr 04 2016 14:12:50 +0000 Subject: Remove reply button for non-authn users --- diff --git a/pagure/templates/_formhelper.html b/pagure/templates/_formhelper.html index d9dd2e7..0877448 100644 --- a/pagure/templates/_formhelper.html +++ b/pagure/templates/_formhelper.html @@ -138,9 +138,11 @@ {% endif %}
- - - + {% if id != 0 and g.fas_user and comment.parent.status in [True, 'Open'] or repo_admin %} + + + + {% endif %} {% if id != 0 and g.fas_user and ( (comment.parent.status in [True, 'Open'] and g.fas_user.username == comment.user.username) or repo_admin) %} @@ -176,10 +178,12 @@
- - - + {% if repo_admin or g.fas_user %} + + + + {% endif %} {% if repo_admin or ( g.fas_user and g.fas_user.username == comment.user.username) %}