From c30730fa871f89bfff0918b8d4ad77e3be13fb87 Mon Sep 17 00:00:00 2001 From: Paul W. Frields Date: Apr 04 2016 14:12:50 +0000 Subject: [PATCH 1/3] 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) %}
- {% if id != 0 and g.fas_user and comment.parent.status in [True, 'Open'] or repo_admin %} + {% if id != 0 and g.fas_user and comment.parent.status in [True, 'Open'] %} @@ -178,7 +178,7 @@
- {% if repo_admin or g.fas_user %} + {% if g.fas_user %} From 741e7eb5088d56c0cda60c72e0be073b08d69682 Mon Sep 17 00:00:00 2001 From: Paul W. Frields Date: Apr 04 2016 14:42:20 +0000 Subject: [PATCH 3/3] Remove other unnecessary repo_admin --- diff --git a/pagure/templates/_formhelper.html b/pagure/templates/_formhelper.html index a871424..774f6e0 100644 --- a/pagure/templates/_formhelper.html +++ b/pagure/templates/_formhelper.html @@ -144,8 +144,7 @@ {% 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) %} + comment.parent.status in [True, 'Open'] and g.fas_user.username == comment.user.username) %} @@ -153,8 +152,7 @@ {% 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) %} + comment.parent.status in [True, 'Open'] and g.fas_user.username == comment.user.username) %}