From 4497e257c3eda9c8614f67a44b0da23b1f1af367 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 22 2018 10:52:36 +0000 Subject: Allow deleting branches in forks regardless of ALLOW_DELETE_BRANCH Basically, even if main project are not allowed to delete branches forks should be. Fixes https://pagure.io/pagure/issue/3547 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/repo_branches.html b/pagure/templates/repo_branches.html index 7fd5b83..5661f2f 100644 --- a/pagure/templates/repo_branches.html +++ b/pagure/templates/repo_branches.html @@ -76,7 +76,10 @@ - {% if g.repo_committer and branch != head and config.get('ALLOW_DELETE_BRANCH', True) %} + {% if g.repo_committer and branch != head + and ( + config.get('ALLOW_DELETE_BRANCH', True) + or repo.is_fork) %}