From f44c52e70f532c052ad43b877a2518d7558e1b4e Mon Sep 17 00:00:00 2001
From: Roke Beedell <j3vordcy@rokejulianlockhart.addy.io>
Date: Nov 30 2025 00:51:24 +0000
Subject: Update pagure/templates/_formhelper.html


Attempts to remediate https://matrix.to/#/!BQtBNtLvdsmwKunNyF:fedora.im/$_gCqq7nk-lbjwu9zjfCb15ovBRyKrmHWo57qqVG5hho?via=fedora.im&via=matrix.org&via=cavalca.name, per https://chatgpt.com/s/t_692b9501083c8191acc3e5f2815bcad0.
---

diff --git a/pagure/templates/_formhelper.html b/pagure/templates/_formhelper.html
index 4eb4e06..02aa423 100644
--- a/pagure/templates/_formhelper.html
+++ b/pagure/templates/_formhelper.html
@@ -165,18 +165,16 @@
                 <span class="fa fa-reply"></span>
             </button>
             {% endif %}
-            {% if id != 0 and g.fas_user and (g.repo_committer or (
-              comment.parent.status in [True, 'Open']
-              and g.fas_user.username == comment.user.username)) %}
+            {% if id != 0 and g.fas_user and (g.repo_committer
+              or g.fas_user.username == comment.user.username) %}
             <a class="btn btn-outline-primary border-0 edit_btn" href="{{
                 '%s/comment/%s/edit' % (request.base_url, comment.id) }}"
                 data-comment="{{ comment.id }}" data-objid="{{ issueid }}">
               <i class="fa fa-pencil"  title="Edit comment"></i>
             </a>
             {% endif %}
-            {% if id != 0 and g.fas_user and (g.repo_committer or (
-                comment.parent.status in [True, 'Open']
-                and g.fas_user.username == comment.user.username)) %}
+            {% if id != 0 and g.fas_user and (g.repo_committer
+              or g.fas_user.username == comment.user.username) %}
             <button class="btn btn-outline-primary border-0 delete_comment_btn" type="submit"
                 name="drop_comment" value="{{ comment.id }}"
                 title="Remove comment">

