From a9a56cbbeb13f2e4fe1516aaa0d119fcdcfdbed9 Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Mar 03 2017 15:00:57 +0000 Subject: Unit tests: Fix broken conditions for issues This commit brings a couple of changes: 1. The committer should be able to edit or delete an issue (thanks to unit tests) 2. The condition for checking "altering" milestone was broken which wasn't caught because it was inside self.assertNotIn --- diff --git a/pagure/templates/_formhelper.html b/pagure/templates/_formhelper.html index 33af8dc..fbdea6e 100644 --- a/pagure/templates/_formhelper.html +++ b/pagure/templates/_formhelper.html @@ -186,7 +186,7 @@ {% endif %} - {% if g.repo_admin or ( + {% if g.repo_committer or ( g.fas_user and g.fas_user.username == comment.user.username) %} {% endif %} - {% if g.repo_admin %} + {% if g.repo_committer %}